plot.bmbstats_cv_model: S3 method for plotting 'cv_model' results

Description Usage Arguments Examples

View source: R/cv-model-S3.R

Description

S3 method for plotting cv_model results

Usage

1
2
## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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
  )
)

plot(m1, "residuals")

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.