loo_helper: Leave-m-out estimation

Description Usage Arguments

View source: R/loo.R

Description

Leave-m-out estimation

Usage

1
2
3
4
5
6
7
8
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 Aug. 31, 2021, 4:25 p.m.