Function to translate data frame to boot class (boot package) for ci computation
df2boot(t0, t, R, sample_data, strata)
The observed value of statistic applied to data
A matrix with sum(R) rows each of which is a bootstrap replicate of the result of calling statistic.
The number of bootstrap replicates. Usually this will be a single positive integer.
The sample data
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