bootMerCases: bootMerCases

Description Usage Arguments

View source: R/mediations.R

Description

bootMerCases

Usage

1
2
3
bootMerCases(x, FUN, nsim = 1, seed = NULL, how = c("groups",
  "within", "both"), parallel = c("no", "multicore"),
  ncpus = getOption("boot.ncpus", 1L))

Arguments

x

a fitted merMod object: see lmer, glmer, etc.

FUN

a function taking a fitted merMod object as input and returning the statistic of interest, which must be a (possibly named) numeric vector.

nsim

number of resampled data sets, positive integer; the bootstrap B (or R).

seed

optional argument to set.seed.

how

Character specifying whether resampling should be done of groups, observations within groups, or both. Currently only one level of grouping is allowed.

parallel

The type of parallel operation to be used (if any).

ncpus

integer: number of processes to be used in parallel operation: typically one would choose this to be the number of available CPUs.


jflournoy/permediatr documentation built on Dec. 10, 2019, 11:34 a.m.