check.rr: Check Relative Risk

Description Usage Arguments Value Author(s) See Also Examples

Description

Function for checking that Relative Risk rr equals 1 when evaluated in 0.

Usage

1
check.rr(X, thetahat, rr, tol = 1e-08)

Arguments

X

Random sample (data.frame) which includes exposure and covariates. or sample mean if approximate method is selected.

thetahat

Estimator (vector or matrix) of theta for the Relative Risk function.

rr

Function for Relative Risk which uses parameter theta. The order of the parameters should be rr(X, theta).

tol

Tolerance for concluding numeric equality.

Value

boolean Indicating TRUE if relative risk rr is as desired.

Author(s)

Rodrigo Zepeda-Tello rzepeda17@gmail.com

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

See Also

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

Examples

1
2
3
X  <- data.frame(rnorm(100))
rr <- function(X, theta){exp(X*theta)}
check.rr(X, 1, rr)

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