ci.mean.fpc {statpsych} | R Documentation |
Confidence interval for a mean with a finite population correction
Description
Computes a confidence interval for a population mean with a finite population correction (fpc) using the estimated mean, estimated standard deviation, sample size, and population size. This function is useful when the sample size is not a small fraction of the population size.
Usage
ci.mean.fpc(alpha, m, sd, n, N)
Arguments
alpha |
alpha level for 1-alpha confidence |
m |
estimated mean |
sd |
estimated standard deviation |
n |
sample size |
N |
population size |
Value
Returns a 1-row matrix. The columns are:
Estimate - estimated mean
SE - standard error with fpc
LL - lower limit of the confidence interval with fpc
UL - upper limit of the confidence interval with fpc
Examples
ci.mean.fpc(.05, 24.5, 3.65, 40, 300)
# Should return:
# Estimate SE LL UL
# 24.5 0.5381631 23.41146 25.58854
[Package statpsych version 1.6.0 Index]