View source: R/plotStdErrVar.R
plotStdErrVar | R Documentation |
This function is used as a toy example on how to represent the data statistics regarding the variance of the sample. The mean variance and its standard error are depicted. Note that this is just an illustration to show that the analytic and the resampling approaches almost match each other.
plotStdErrVar(
data,
functions = c("normalApr", "analytic", "bootstrap", "jackknife"),
...
)
data |
The input data in the form of a vector. NA values are omitted. |
functions |
Choose the subset of the functions you wish use for the calculation and subsequent plot of the standard error of the variance. You can use one or a combination of "normalApr", "analytic","bootstrap","correctedBoot", and "jackknife". For now, it outputs all of the aforementioned methods! |
This is a plotting function just for demonstration purposes.
# size of the sample
n=50
#generate a random sample of size n from a normal distribution
data_ex=rnorm(n,0.5,0.1)
plotStdErrVar(data_ex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.