Description Usage Arguments Details Value Note Author(s) See Also Examples
Estimate the parameter values with maximum likelihood (MLE
) or a method of moments approach (LSE
), or both (all
)
1 2 | estimateModelParameters(method = "all", ccList, peptides = NULL,
numIter = 10, verbose = FALSE)
|
method |
method to be used for the parameter estimation; can be |
ccList |
list of pre-processed connected components |
peptides |
data frame with pre-processed peptide info (only used for LSE) |
numIter |
number of successful munerical optimizations to perform (only used for MLE, see details) |
verbose |
If |
To use method="MLE"
the inverses of the covariance matrices (of the connected components) are needed. Depending on the chosen parameters, this can lead to stability issues. To avoid the function from crashing, a try(...)
bolck is used: the parameter estimation is performed until it was successful numIter
times. Among these numIter
sets, the one with the lowest negative log-likelihood value is returned.
Named list of vectors with at least four named elements: alphaH
, betaH
, muH
and tauH
(estimates for the four model parameters). The name of the list elements corresponds to the parameter estimation method, namely LSE
or MLE
.
This function is called by one of the main functions of the package, runScampi
. Calling this function directly is seldomly necessary.
Sarah Gerster sarah.gerster@isb-sib.ch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
data("leptoSRM")
dataChecked <- checkInputData(scampi(peptides=leptoSRMpeptides,
proteins=leptoSRMproteins,
edgespp=leptoSRMedgespp),
rescaling=FALSE)
tmpPrepro <- preprocessInputData(dataChecked)
dataPrepro <- tmpPrepro[["dataPrepro"]]
ppGraph <- tmpPrepro[["ppGraph"]]
myCCList <- tmpPrepro[["ccList"]]
rm("tmpPrepro")
scampiParam <- estimateModelParameters(method="all", ccList=myCCList,
peptides=dataPrepro@peptides,
numIter=10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.