check.cft: Check that expected value of counterfactual decreases...

Description Usage Arguments Value Author(s) See Also Examples

Description

Function that checks whether the counterfactual function of pif decreases the exposure values X.

Usage

1
check.cft(cft, X)

Arguments

cft

Function cft(X) for counterfactual. Leave empty for the Population Attributable Fraction paf where counterfactual is 0 exposure.

X

Random sample (data.frame) which includes exposure and covariates or sample mean.

Value

TRUE if counterfactual cft is well defined.

Author(s)

Rodrigo Zepeda-Tello rzepeda17@gmail.com

Dalia Camacho-GarcĂ­a-FormentĂ­ daliaf172@gmail.com

See Also

check.confidence, check.thetas, check.xvar, check.rr, check.exposure, check.integrals

Examples

1
2
3
4
#Example 1 
cft <- function(X){0.5*X}
X   <- runif(100, 0,2)
check.cft(cft, X)

INSP-RH/pif documentation built on May 7, 2019, 6:01 a.m.