parboot.tramME: Do parametric bootsrap using a tarmME model

Description Usage Arguments Value

View source: R/simulate.R

Description

Do parametric bootsrap using a tarmME model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class '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.


tramME documentation built on Aug. 16, 2021, 5:08 p.m.