Learn R Programming

vimp (version 2.1.0)

cv_predictiveness_point_est: Estimate a nonparametric predictiveness functional using cross-validation

Description

Compute nonparametric estimates of the chosen measure of predictiveness.

Usage

cv_predictiveness_point_est(
  fitted_values,
  y,
  weights = rep(1, length(y)),
  folds,
  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.

weights

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

folds

the cross-validation folds

type

which parameter are you estimating (defaults to anova, for ANOVA-based variable importance)?

na.rm

logical; should NA's be removed in computation? (defaults to FALSE)

Value

The estimated 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.