View source: R/interval_estimate4.R
interval_estimate4 | R Documentation |
mu
of one normal sample
Compute the two sided or one sided interval estimation of mu
of one normal sample when the population variance is known or unknown.
interval_estimate4(x, sigma = -1, side = 0, alpha = 0.05)
x |
A numeric vector. |
sigma |
The standard deviation of the population. |
side |
A parameter used to control whether to compute two sided or one sided interval estimation. When computing the one sided upper limit, input |
alpha |
The significance level, a real number in [0, 1]. Default to 0.05. 1-alpha is the degree of confidence. |
A data.frame with variables:
mean |
The sample mean. |
df |
The degree of freedom. |
a |
The confidence lower limit. |
b |
The confidence upper limit. |
Ying-Ying Zhang (Robert) robertzhangyying@qq.com
Zhang, Y. Y., Wei, Y. (2013), One and two samples using only an R funtion, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2991/asshm-13.2013.29")}.
x=rnorm(10, mean = 1, sd = 0.2); x
interval_estimate4(x, sigma = 0.2, side = -1)
interval_estimate4(x, side = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.