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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/check_cft.R

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<c3><ad>a-Forment<c3><ad> 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)

pifpaf documentation built on May 1, 2019, 9:11 p.m.