check.rr: Check Relative Risk

Description Usage Arguments Value Author(s) See Also Examples

View source: R/check_rr.R

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 [email protected]

Dalia Camacho-Garc<c3><ad>a-Forment<c3><ad> [email protected]

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)

pifpaf documentation built on Sept. 29, 2017, 1:03 a.m.