Learn R Programming

matrixpls (version 0.6.0)

matrixpls.boot: Bootstrapping of matrixpls function

Description

matrixpls.boot is a convenience method that implements bootstrapping of matrixpls with boot method of the boot package.

Usage

matrixpls.boot(data, ..., R = 500, signChangeCorrection = NULL,
  parallel = c("no", "multicore", "snow"), ncpus = getOption("boot.ncpus",
  1L), stopOnError = FALSE, extraFun = NULL)

Arguments

data
Matrix or data frame containing the raw data.
...
All other arguments are passed through to matrixpls.
R
Number of bootstrap samples to draw.
signChangeCorrection
Sign change correction function.
parallel
The type of parallel operation to be used (if any). If missing, the default is taken from the option "boot.parallel" (and if that is not set, "no").
ncpus
integer: number of processes to be used in parallel operation: typically one would chose this to the number of available CPUs.
stopOnError
A logical indicating whether boostrapping should be continued when error occurs in a replication.
extraFun
A function that takes a matrixpls object and returns a numeric vector. The vector is appended to bootstrap replication. Can be used for boostrapping additional statistics calculated based on the estimation results.

Value

  • An object of class boot.

See Also

boot

Sign change corrections: signChange.individual; signChange.construct