ic.proj.rr.nolas {amp}R Documentation

Estimate both the parameter, and or the influence curves used for estimating the projected risk ratio (not using lasso). The first column of your data should correspond to the variable of interest.

Description

Estimate both the parameter, and or the influence curves used for estimating the projected risk ratio (not using lasso). The first column of your data should correspond to the variable of interest.

Usage

ic.proj.rr.nolas(obs_data, what = "both", control = NULL)

Arguments

obs_data

the observed data. The first column should be the outcome.

what

the desired return value. Should be one of "ic" (influence curve), "est" (estimate), or "both".

control

any other control parameters to be passed to the estimator.

Value

If what is

- "est", then return the estimated parameter.

- "ic", then return the estimated IC of the parameter estimate.

- "both", then return both the parameter estimate and corresponding estimated IC.

Examples

# not run (make sure to load in SuperLearner if running)
# set.seed(1010)
# fake_dat <- data.frame(y = rbinom(100, size = 1, prob = 0.5),
#                       delta = rbinom(100, size =  1, prob = 0.5),
#                      w = matrix(rnorm(500), ncol = 5))
# ic.proj.rr.nolas(fake_dat)


[Package amp version 1.0.0 Index]