infer_os_var_test {inferr} | R Documentation |
One Sample Variance Comparison Test
Description
infer_os_var_test
performs tests on the equality of standard
deviations (variances).It tests that the standard deviation of a sample is
equal to a hypothesized value.
Usage
infer_os_var_test(
data,
x,
sd,
confint = 0.95,
alternative = c("both", "less", "greater", "all"),
...
)
Arguments
data |
a |
x |
numeric; column in |
sd |
hypothesised standard deviation |
confint |
confidence level |
alternative |
a character string specifying the alternative hypothesis, must be one of "both" (default), "greater", "less" or "all". You can specify just the initial letter |
... |
additional arguments passed to or from other methods |
Value
infer_os_var_test
returns an object of class "infer_os_var_test"
.
An object of class "infer_os_var_test"
is a list containing the
following components:
n |
number of observations |
sd |
hypothesised standard deviation of |
sigma |
observed standard deviation |
se |
estimated standard error |
chi |
chi-square statistic |
df |
degrees of freedom |
p_lower |
lower one-sided p-value |
p_upper |
upper one-sided p-value |
p_two |
two-sided p-value |
xbar |
mean of |
c_lwr |
lower confidence limit of standard deviation |
c_upr |
upper confidence limit of standard deviation |
var_name |
name of |
conf |
confidence level |
type |
alternative hypothesis |
Deprecated Function
os_vartest()
has been deprecated. Instead use infer_os_var_test()
.
References
Sheskin, D. J. 2007. Handbook of Parametric and Nonparametric Statistical Procedures, 4th edition. : Chapman & Hall/CRC.
See Also
Examples
# lower tail
infer_os_var_test(mtcars, mpg, 5, alternative = 'less')
# upper tail
infer_os_var_test(mtcars, mpg, 5, alternative = 'greater')
# both tails
infer_os_var_test(mtcars, mpg, 5, alternative = 'both')
# all tails
infer_os_var_test(mtcars, mpg, 5, alternative = 'all')