gen_sample: Generates block resamples

Description Usage Arguments Value

View source: R/bootstrap_methods.R

Description

Takes in a list of unique levels in the random columns, gives back a random sampling of each.

Usage

1
2
3
4
5
6
gen_sample(
  list_of_levels,
  rand_columns = NULL,
  unique_resample_lim = NULL,
  reduce_by_one = TRUE
)

Arguments

list_of_levels

List of vectors of levels of each random effect.

rand_columns

Default NULL. Name of columns to randomise over; if NULL, will use all in list_of_levels

unique_resample_lim

Default NULL; optionally set a minimal number of unique levels each sample must produce. Note that it should be a named vector, the same as the levels to randomise over.

reduce_by_one

Logical, default TRUE; for greater coverage, resample one less than the number of levels in each list.

Value

A list of samples


glmmboot documentation built on June 28, 2021, 1:05 a.m.