Learn R Programming

tramME (version 0.1.3)

parboot.tramME: Do parametric bootsrap using a tarmME model

Description

Do parametric bootsrap using a tarmME model

Usage

# S3 method for tramME
parboot(
  object,
  statistic,
  nsim = 1,
  conditional = FALSE,
  seed = NULL,
  ...,
  simplify = TRUE,
  parallel = c("no", "multicore", "snow"),
  ncpus = getOption("profile.ncpus", 1L)
)

Arguments

object

A tramME object.

statistic

A function that calculates the statistic of interest.

nsim

Number of draws.

conditional

Logical, if TRUE, the resampling is conditional on the fitted vector of random effects.

seed

optional seed for the random number generator

...

Optional arguments passed to statistic.

simplify

logical or character string; should the result be simplified to a vector, matrix or higher dimensional array if possible? For sapply it must be named and not abbreviated. The default value, TRUE, returns a vector or matrix if appropriate, whereas if simplify = "array" the result may be an array of “rank” (\(=\)length(dim(.))) one higher than the result of FUN(X[[i]]).

parallel

Method for parallel computation.

ncpus

Number of cores to use for parallel computation.

Value

A list/vector/array (whichever is consistent with simplify) of bootstrapped values returned by statistic.