Description Usage Arguments Value Examples
View source: R/FunctionsPoDParameters.R
Function finds the pmax parameter of the PoD curve using control subjects summary statistics (mean, sd), observed incidence rate and previsouly estimated et50 and slope by PoDEfficacySquaredError
function.
1 2 3 4 5 6 | PmaxEstimation(IncidenceRate,
params,
control,
adjustTiters = FALSE,
adjustFrom = NA,
adjustTo = NA)
|
IncidenceRate |
numeric: observed incidence rate in overall (control) subjects |
params |
numeric vector: et50 and slope |
control |
|
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 |
PoD curve parameter pmax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Example 1
data(vaccinated)
data(control)
# Assigning true efficacy
TrueEfficacy <- 0.53
# PoD curve parameters (et50, slope) estimation
params <- PoDEfficacySquaredError(TrueEfficacy, vaccinated, control)
# Assigning incidence rate (observed incidence rate)
IncidenceRate <- 0.2
# pmax estimation
pmax <- PmaxEstimation(IncidenceRate, params, control)
# combining PoD curve parameters
PoDParams <- unlist(c(params, pmax))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.