View source: R/minimizers_and_risk_functions.R
estimate_using_ERM | R Documentation |
Estimates the log relative risk function using a user-supplied binomial sl3 Learner object using either the IPW or plugin empirical risk function.
estimate_using_ERM(
V,
A,
Y,
EY1W,
EY0W,
pA1W,
weights,
family_risk_function,
sl3_Learner,
outcome_function_plugin,
weight_function_plugin,
outcome_function_IPW,
weight_function_IPW,
learning_method = c("plugin", "IPW"),
Vpred = V,
transform_function = function(x) {
x
}
)
V |
A matrix of observations of a subset of the covariates 'W' for which to estimate the (possibly semi-marginalized) log relative risk (LRR). |
A |
A binary vector specifying the treatment assignment. The values should be in 0,1. |
Y |
A numeric vector of binary or nonnegative observations of the outcome variable. |
EY1W |
A numeric vector containing initial cross-fitted estimates of E[Y|A=1,W] for all observations. |
EY0W |
A numeric vector containing initial cross-fitted estimates of E[Y|A=0,W] for all observations. |
pA1W |
A numeric vector containing initial cross-fitted estimates of P(A=1|W) for all observations. |
weights |
A numeric vector of observation weights. If no special weighting desired, supply a vector of 1's. |
learning_method |
A string being either "plugin" or "IPW". Whether the LRR should be estimated by minimizing the plugin or IPW empirical risk function. |
Vpred |
A matrix of covariates observations at which to predict the LRR. By default, |
sl3_LRR_Learner_binomial |
A |
logit_transform |
An internal argument specifying whether the predictions of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.