ic.proj.rr | R Documentation |
Estimate both the parameter, and the influence curves used for estimating the projected risk ratio. The first column of your data should correspond to the variable of interest.
ic.proj.rr(obs_data, what = "both", control = NULL)
obs_data |
the observed data. The first column should be the outcome. |
what |
the desired return value. Should be one of |
control |
any other control parameters to be passed to the estimator. |
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.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.