zconfint_generic | R Documentation |
Calculates normal confidence intervals for a given alternative at a given significance level.
zconfint_generic(mean, std_mean, alpha, alternative)
mean |
(float): Estimated normal mean. |
std_mean |
(float): Estimated standard error of the mean. |
alpha |
(float): Significance level in [0,1] |
alternative |
(string): Alternative hypothesis, either 'two-sided', 'larger' or 'smaller'. |
(vector): Lower and upper (1 - alpha) * 100% confidence limits.
n <- 1000
Y <- rnorm(n, 1, 1)
se_Y <- sd(Y) / sqrt(n)
zconfint_generic(Y, se_Y, alpha = 0.05, alternative = "two-sided")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.