| ci {distillery} | R Documentation |
Method function for finding confidence intervals.
ci(x, alpha = 0.05, ...) ## S3 method for class 'matrix' ci(x, alpha = 0.05, ...) ## S3 method for class 'numeric' ci(x, alpha = 0.05, ...) ## S3 method for class 'ci' print(x, ...)
x |
|
alpha |
number between zero and one giving the 1 - |
... |
Optional arguments depending on the specific method function. In the case of those for Not used by |
ci.numeric: Calculates the mean and normal approximation CIs for the mean.
ci.matrix: Does the same as ci.numeric, but applies to each column of x.
ci.numeric: a numeric vector giving the CI bounds and mean value.
ci.matrix: a matrix giving the mean and CI bounds for each column of x.
Eric Gilleland
ci(rnorm(100, mean=10, sd=2)) ci(matrix(rnorm(10000, mean=40, sd=10), 100, 100))