bootstrap_data: Make bootstrap replicates.

View source: R/bootstrapping.R

bootstrap_dataR Documentation

Make bootstrap replicates.

Description

Make bootstrap replicates of STOMobs object from stratification specified by control object, see (STOMcontrol-class ).

Usage

bootstrap_data(
  s,
  nfac = 1,
  replace = TRUE,
  seed = 0,
  rep_id = 1,
  firstUnchanged = TRUE
)

Arguments

s

Stomach data set of class STOMobs.

nfac

Number of bootstrap samples relative to original number of samples.

replace

Logical for bootstrapping with replacement.

seed

Random seed value.

rep_id

Replicate identifier

firstUnchanged

Do not bootstrap for rep_id==1

Value

Bootstrapped stomach data (replicate) of class STOMobs.

Examples

## Not run: b<-bootstrap_data(s)

MortenVinther/FishStomachs documentation built on Feb. 14, 2025, 7:33 a.m.