bootstrap: Bootstrap a psychonetrics model

View source: R/f_convenience_bootstrap.R

bootstrapR Documentation

Bootstrap a psychonetrics model

Description

This function will bootstrap the data (once) and return a new unevaluated psychonetrics object. It requres storedata = TRUE to be used when forming a model.

Usage

bootstrap(x, replacement = TRUE, proportion = 1, verbose = TRUE, storedata = FALSE, 
          baseline_saturated = TRUE)

Arguments

x

A psychonetrics model.

replacement

Logical, should new samples be drawn with replacement?

proportion

Proportion of sample to be drawn. Set to lower than $1$ for subsampling.

verbose

Logical, should messages be printed?

storedata

Logical, should the bootstrapped data also be stored?

baseline_saturated

Logical, should the baseline and saturated models be included?

Value

An object of the class psychonetrics (psychonetrics-class)

Author(s)

Sacha Epskamp


SachaEpskamp/psychonetrics documentation built on Sept. 1, 2023, 3:40 a.m.