Function to translate data frame to boot class (boot package) for ci computation

df2boot(t0, t, R, sample_data, strata)

Arguments

t0

The observed value of statistic applied to data

t

A matrix with sum(R) rows each of which is a bootstrap replicate of the result of calling statistic.

R

The number of bootstrap replicates. Usually this will be a single positive integer.

sample_data

The sample data

strata

An integer vector or factor specifying the strata for multi-sample problems. This may be specified for any simulation, but is ignored when sim = "parametric". When strata is supplied for a nonparametric bootstrap, the simulations are done within the specified strata