Description Usage Arguments Details Value Examples
View source: R/FunctionsPoDParameters.R
Function calculates the log likelihood value which is used after the initial guesses of the parameters are set in the PoDMLE
function.
1 2 3 4 5 6 |
params |
named numeric vector: PoD curve parameters (et50, slope, pmax) |
nondiseasedTiters |
numeric vector: non-diseased subjects titers |
diseasedTiters |
numeric vector: diseased subjects titers |
adjustTiters |
boolean: set to TRUE if titer values should be adjusted, for details see |
adjustFrom |
numeric: value specifying the detection limit, all values below the detection limit will be adjusted to adjustTo value |
adjustTo |
numeric: value to which titers below the detection limit will be adjusted |
MLE function is used inside of PoDMLE function and esimates the PoD curve parameters.
Based on the provided titers for diseased and non-diseased subjects the PoD curve parameters which maximize the log likelihood are chosen as optimal estimates of parameters.
log likelihood, numeric value
1 2 3 4 5 6 7 | # Data preparation
data(diseased)
data(nondiseased)
data(PoDParams)
# MLE calculation
MLE(PoDParams, nondiseased$titers, diseased$titers)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.