one_sample {OneTwoSamples} | R Documentation |
Deal with one (normal) sample
Description
Deal with one sample x
, especially normal. Report descriptive statistics, plot, interval estimation and test of hypothesis of x
.
Usage
one_sample(x, mu = Inf, sigma = -1, side = 0, alpha = 0.05)
Arguments
x |
A numeric vector. |
mu |
In two sided or one sided interval estimation (or test of hypothesis) of In two sided or one sided test of hypothesis of |
sigma |
In two sided or one sided interval estimation (or test of hypothesis) of In two sided or one sided test of hypothesis of |
side |
In two sided or one sided interval estimation of In two sided or one sided interval estimation of In two sided or one sided test of hypothesis of In two sided or one sided test of hypothesis of |
alpha |
The significance level, a real number in [0, 1]. Default to 0.05. 1-alpha is the degree of confidence. |
Value
A list with the following components:
mu_interval |
It contains the results of interval estimation of |
mu_hypothesis |
It contains the results of test of hypothesis of |
sigma_interval |
It contains the results of interval estimation of |
sigma_hypothesis |
It contains the results of test of hypothesis of |
Author(s)
Ying-Ying Zhang (Robert) robertzhangyying@qq.com
References
Zhang, Y. Y., Wei, Y. (2013), One and two samples using only an R funtion, doi:10.2991/asshm-13.2013.29.
Examples
x=rnorm(10, mean = 1, sd = 0.2); x
one_sample(x, mu = 1, sigma = 0.2, side = 1)
one_sample(x, sigma = 0.2, side = 1)
one_sample(x, mu = 1, side = 1)
one_sample(x)