run_loo: Function for running leave one out cross-validation

View source: R/fit.R

run_looR Documentation

Function for running leave one out cross-validation

Description

Function for running leave one out cross-validation

Usage

run_loo(fit, progress = TRUE)

Arguments

fit

Object from fit_model()

progress

Display progress bar? (Generated using the progressr and progress packages)

Value

Returns a list with three objects:

  1. preds - log observations that were left out at each step with log predictions, and

  2. mse - mean squared error of the predictions (leave one out cross validation score).


PaulRegular/MSP documentation built on Dec. 16, 2024, 1:59 p.m.