plotStdErrVar: An example plotting function

View source: R/plotStdErrVar.R

plotStdErrVarR Documentation

An example plotting function

Description

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.

Usage

plotStdErrVar(
  data,
  functions = c("normalApr", "analytic", "bootstrap", "jackknife"),
  ...
)

Arguments

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!

Warning

This is a plotting function just for demonstration purposes.

Examples

# 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)

kostasgian21/heteroplasmy documentation built on Jan. 30, 2024, 12:30 a.m.