Learn R Programming

abd (version 0.1-21)

meanCI: Confidence Intervals and P-values for a Mean

Description

Convenience functions that extract a confidence interval or p-value.

Usage

meanCI(...)
meanPval(...)
propCI(..., method=c('binom.test','prop.test', 'wilson', 'agresti-coull'))
propPval(..., method=c('binom.test','prop.test'))

Arguments

...
arguments to t.test or prop.test
method
an integer or character naming which method to use

Value

  • A numeric. As a side-effect, additional information about the interval or hypothesis test is printed to the screen.

See Also

interval, pval

Examples

Run this code
bwplot(extra ~ group, data = sleep)
meanCI(extra ~ group, data = sleep)
meanPval(extra ~ group, data = sleep)
propCI(60,100)
propPval(60,100)

Run the code above in your browser using DataLab