Description Usage Arguments Value Examples
Performs a bootstrap assuming a simple random sample
1  | srs_bootstrap(dat, fun, replicates = 1000)
 | 
dat | 
 a data.frame  | 
fun | 
 a function taking a dataframe as a parameter  | 
replicates | 
 the number of replicates  | 
a list with class boot_est containing 'value': the value of the function applied to dat. 'var': the boostrap variance. 'replicates': The bootstrap values of fun. 'nrep': the number of replicates.
1 2  | df <- data.frame(a=rnorm(100))
srs_bootstrap(df, colMeans,replicates=100)$var
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.