cppPoD: Probability of disease calculation

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Function calculates probability of disease (PoD) for given titers according to a PoD curve.

Usage

1
cppPoD(titer, pmax, et50, slope, adjustTiters = FALSE, adjustFrom = 0, adjustTo = 0)

Arguments

titer

numeric vector: vector of subject level titers

pmax

numeric: maximum PoD

et50

numeric: titer value corresponding to pmax/2 value, PoD(et50) = pmax/2

slope

numeric: slope of the PoD curve

adjustTiters

boolean: set to TRUE if titer values should be adjusted, for details see PoD function

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

Details

See PoD function for more details. These two functions are equivalent. Usage of cppPoD significantly improves the computation speed over the PoD function.

Value

vector of PoDs


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