boot_nb: Nonparametric Bootstrap

Description Usage Arguments Value Author(s) See Also Examples

View source: R/boot.R

Description

Generates B number of nonparametric bootstrap resamples from the original sample data.

Usage

1
boot_nb(data, B = 2000)

Arguments

data

Matrix of sample data to bootstrap.

B

Number of bootstrap resamples.

Value

Returns a list of nonparametric bootstrap resamples.

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other bootstrap functions: boot_fit(), boot_lav(), boot_pb_med_simple(), boot_pb_vm(), boot_pb()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
B <- 5
Sigma <- matrix(
  data = c(
    225, 112.50, 56.25,
    112.5, 225, 112.5,
    56.25, 112.50, 225
  ),
  ncol = 3
)
mu <- c(100, 100, 100)
data <- gendat_mvn(
  n = 100,
  Sigma = Sigma,
  mu = mu
)
boot_nb_resamples <- boot_nb(data = data, B = B)

jeksterslabds/jeksterslabRds documentation built on July 16, 2020, 3:41 p.m.