cppPoD {PoDBAY}R Documentation

Probability of disease calculation

Description

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

Usage

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


[Package PoDBAY version 1.4.3 Index]