View source: R/est_predictiveness.R
| est_predictiveness | R Documentation | 
Compute nonparametric estimates of the chosen measure of predictiveness.
est_predictiveness(
  fitted_values,
  y,
  a = NULL,
  full_y = NULL,
  type = "r_squared",
  C = rep(1, length(y)),
  Z = NULL,
  ipc_weights = rep(1, length(C)),
  ipc_fit_type = "external",
  ipc_eif_preds = rep(1, length(C)),
  ipc_est_type = "aipw",
  scale = "identity",
  na.rm = FALSE,
  nuisance_estimators = NULL,
  ...
)
| fitted_values | fitted values from a regression function using the observed data. | 
| y | the observed outcome. | 
| a | the observed treatment assignment (may be within a specified fold,
for cross-fitted estimates). Only used if  | 
| full_y | the observed outcome (from the entire dataset, for cross-fitted estimates). | 
| type | which parameter are you estimating (defaults to  | 
| C | the indicator of coarsening (1 denotes observed, 0 denotes unobserved). | 
| Z | either  | 
| ipc_weights | weights for inverse probability of coarsening (e.g., inverse weights from a two-phase sample) weighted estimation. Assumed to be already inverted (i.e., ipc_weights = 1 / [estimated probability weights]). | 
| ipc_fit_type | if "external", then use  | 
| ipc_eif_preds | if  | 
| ipc_est_type | IPC correction, either  | 
| scale | if doing an IPC correction, then the scale that the correction should be computed on (e.g., "identity"; or "logit" to logit-transform, apply the correction, and back-transform). | 
| na.rm | logical; should NA's be removed in computation?
(defaults to  | 
| nuisance_estimators | (only used if  | 
| ... | other arguments to SuperLearner, if  | 
See the paper by Williamson, Gilbert, Simon, and Carone for more details on the mathematics behind this function and the definition of the parameter of interest.
A list, with: the estimated predictiveness; the estimated efficient influence function; and the predictions of the EIF based on inverse probability of censoring.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.