Nonparametric resampling from a data frame
nonparametric_resampling(df, resample)nonparametric_resampling returns a data frame containing the
observations of the resample.
Data frame containing observations to be sampled from.
A vector of indices that extract the observations from the data frame.
The input to the resample argument could for example be generated as
one of the elements in the list generated by the command
nonparametric.
The input to the df argument would be the original data frame for case
resampling. For error/residual resampling, it would be a data frame
containing the residuals from the model.