View source: R/analyticVarKimura.R
analyticVarKimura | R Documentation |
A Kimura-distribution-based method that calculates analytically the standard error of the variance (see Eq. 11 in Wonnapinij et al., 2010). It uses only the Kimura distribution parameters p and b (passed as arguments).
analyticVarKimura(data, p, b)
data |
The input data in the form of a vector. NA values are omitted. |
p |
The p parameter of the Kimura distribution. Should be in |
b |
The b parameter of of the Kimura distribution. Should be in |
The analytically derived standard error of the variance of data
.
# 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)
analyticVar(data)
mouseData=readHeteroplasmyData("HB")
mouseData1 = mouseData[which(!is.na(mouseData[,1])),1]
analyticVar(mouseData1)
# use the package data and load it to variable mouseData
mouseData=mousedataLE
# calculate the standard error of the variance for the LE oocyte sample #3
analyticVarKimura(mouseData[,3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.