S3 method for plotting cv_model results

# S3 method for bmbstats_cv_model
plot(x, type = "residuals", ...)

Arguments

x

Object of class bmbstats_cv_model

type

Type of plot. Options are "residuals", "training-residuals", "testing-residuals", "bias-variance-index", "bias-variance-observed", "prediction-index", "prediction-observed", and "estimators". Default is "residuals"

...

Extra arguments. Use plot_control to control plotting style.

Examples

data("vertical_jump_data") m1 <- cv_model( `Post-test` ~ `Pre-test` * Group * `Squat 1RM`, vertical_jump_data, control = model_control( cv_repeats = 10, cv_folds = 3, cv_strata = vertical_jump_data$Group ) )
#> Cross-validating: 3 folds, 10 repeats
#> Done!
plot(m1, "residuals")