loo_helper: Leave-m-out estimation

View source: R/loo.R

loo_helperR Documentation

Leave-m-out estimation

Description

Leave-m-out estimation

Usage

loo_helper(
  data,
  var,
  loo_n = 1,
  loo_fun = function(dat) estimatr::tidy(estimatr::lm_robust(data = dat, formula = mpg ~
    1)),
  parallel = FALSE
)

Arguments

data

data frame

var

character vector of variable(s) name(s) to use for LOO

loo_n

number of unique values of var to leave out at a time

loo_fun

estimation function

parallel

whether to use parallel in plyr::alply


gerasy1987/usefulr documentation built on Sept. 18, 2024, 9:46 a.m.