Learn R Programming

DEmixR (version 0.1.1)

bootstrap_mix2: Bootstrap mixture parameters

Description

Bootstrap mixture parameters

Usage

bootstrap_mix2(
  fit = NULL,
  x = NULL,
  par = NULL,
  family = NULL,
  B = 1000,
  parametric = TRUE,
  boot_size = NULL,
  parallelType = 0,
  quiet = 2,
  ci_level = 0.95
)

Value

list with cleaned bootstrap estimates, central tendency, and CI

Arguments

fit

fitted object from fit_lognorm2 or fit_norm2

x

numeric vector (if fit not provided)

par

numeric vector of parameters (if fit not provided)

family

"lognormal" or "normal" (if fit not provided)

B

number of bootstrap replicates

parametric

logical, parametric bootstrap if TRUE

boot_size

size or fraction (if between 0 and 1) of bootstrap sample

parallelType

integer for DEoptim/pbapply parallelism

quiet

0/1/2 for verbosity

ci_level

confidence level