PoDParamPointEstimation: PoD curve point estimate

Description Usage Arguments Details Value Examples

View source: R/FunctionsPoDParameters.R

Description

Function returns PoD curve parameters corresponding to the point estimate of PoD curve.

Usage

1
2
3
PoDParamPointEstimation(resultsPriorReset, 
                        titers = seq(from = 0, to = 20, by = 0.01), 
                        optim_titers = FALSE)

Arguments

resultsPriorReset

named data frame ("pmax", "slope", "et50"): set of estimated PoD curve parameters before resetting the disease status; for further details see PoDParamEstimation function.

titers

numeric vector: a grid of titers for PoD curve point estimate calculation

optim_titers

logical: TRUE for a predefined sequence of titers

Details

For each of estimated PoD curves in resultsPriorReset, the function values (probabilities of disease, PoD) for provided grid of titers are calculated.

Median of function values (PoDs) at each provided titer is calculated.

Subsequently, the PoD curve model is fitted to the median datapoins using fitPoD function, in order to get PoD curve parameters close to this median curve.

Value

paramsPointEstimate: named data frame of PoD curve parameters corresponding to the PoD curve point estimate

Examples

1
2
3
4
5
6
7
8
9
## Data preparation
data(estimatedParameters)

## Example 1
# titers for which we want to optimize the functional values
titers <- seq(from = 0, to = 20, by = 0.01)

# Point estimate of PoD curve
PoDParamPointEstimation(estimatedParameters$resultsPriorReset, titers)

PoDBAY documentation built on Sept. 21, 2021, 5:08 p.m.