Learn R Programming

superb (version 0.95.15)

precisionMeasures: Precision measures

Description

superb comes with a few built-in measures of precisions. All SE.fct() functions produces an interval width; all CI.fct() produces the lower and upper limits of an interval. See htc14,htc15superb for more. "superbPlot-compatible" precision measures must have these parameters:

Usage

SE.mean(x)

CI.mean(x, gamma)

SE.median(x)

CI.median(x, gamma)

SE.hmean(x)

CI.hmean(x, gamma)

SE.gmean(x)

CI.gmean(x, gamma)

SE.var(x)

CI.var(x, gamma)

SE.sd(x)

CI.sd(x, gamma)

SE.MAD(x)

CI.MAD(x, gamma)

SE.IQR(x)

CI.IQR(x, gamma)

SE.fisherskew(x)

CI.fisherskew(x, gamma)

SE.pearsonskew(x)

CI.pearsonskew(x, gamma)

SE.fisherkurtosis(x)

CI.fisherkurtosis(x, gamma)

Value

a measure of precision (SE) or an interval of precision (CI).

Arguments

x

a vector of numbers, the sample data (mandatory);

gamma

a confidence level for CI (default 0.95).

References

Examples

Run this code
# the confidence interval of the mean for default 95% and 90% confidence level
CI.mean( c(1,2,3) )
CI.mean( c(1,2,3), gamma = 0.90)

# Standard errors for standard deviation, for MAD and for fisher skew
SE.sd( c(1,2,3) )
SE.MAD( c(1,2,3) )
SE.fisherskew( c(1,2,3) )

Run the code above in your browser using DataLab