Description Usage Arguments Details Value Examples
View source: R/bootstrap_function.R
Tool to do a bootstrap on a dataset
1 | bootstrap(observations, method = "mean", nboot = 10000)
|
observations |
the column of the dataframe with the observations |
method |
One of 3 options: "mean" (Defaul), "median" or "selfchoosenmethod". If "selfchoosenmethod" is used, the user has to define the parameter selfchosenmethod as a function that calculates the test-statistic, with the only input being column 2 from the data. |
nboot |
Number of iterations, Default(10000) |
Given a dataset where column 1 specifies the groups and column 2 specifies the observed values for each group, the function makes a bootstrap, the output is a plot of the sample distribut, including confidence interval, mean of obs and sd.
list of class bootstrap
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.