Learn R Programming

vimp (version 2.1.0)

cv_predictiveness_update: Estimate the influence function for an estimator of predictiveness

Description

Estimate the influence function for the given measure of predictiveness.

Usage

cv_predictiveness_update(
  fitted_values,
  y,
  folds,
  weights = rep(1, length(y)),
  type = "r_squared",
  na.rm = FALSE
)

Arguments

fitted_values

fitted values from a regression function; a list of length V, where each object is a set of predictions on the validation data.

y

the outcome.

folds

the cross-validation folds

weights

weights for the computed influence curve (e.g., inverse probability weights for coarsened-at-random settings)

type

which risk parameter are you estimating (defaults to r_squared, for the $R^2$)?

na.rm

logical; should NAs be removed in computation? (defaults to FALSE)

Value

The estimated influence function values for the given measure of predictiveness.

Details

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.