bootstrap: bootstrap a model

Description Usage Arguments Examples

View source: R/all_generic.R

Description

bootstrap a model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
bootstrap(x, nboot, ...)

## S3 method for class 'mubada'
bootstrap(
  x,
  niter,
  nboot = 100,
  ncomp = x$ncomp,
  type = c("projection", "rotated", "unrotated")
)

Arguments

x

the model fit

nboot

the number of bootstrap resamples

...

extra args

Examples

1
2
3
4
5
## mubada bootstrap analysis
Xl <- lapply(1:5, function(i) matrix(rnorm(100*20), 100, 20))
Yl <- lapply(1:5, function(i) factor(rep(letters[1:5], length.out=100)))

mb <- mubada(Yl, Xl)

bbuchsbaum/neuropls documentation built on Dec. 9, 2020, 7:02 p.m.