Last chance! 50% off unlimited learning
Sale ends in
Under the assumption that the data come from a Normal distribution, it performs the hypothesis testing and the confidence interval for the variance with unknown population mean.
VUM.test(x, sigma = 1, sigmasq = sigma^2,
alternative = c("two.sided", "less", "greater"), conf.level = 0.95,
...)
a (non-empty) numeric vector of data values.
a number indicating the true value of the population standar deviation - Null hypothesis.
control argument.
a character string specifying the alternative hypothesis, must be one of "two.sided"
, "greater"
o "less"
. You can specify just the initial letter.
confidence level of the interval.
further arguments to be passed to or from methods.
A list with class "htest"
containing the following components:
the value of the test statistic
the degrees of freedom for the test statistic
the p-value for the test.
confidence interval for variance with unknown population mean associated with the specified alternative hypothesis.
vthe estimated variance.
the specified hypothesized value of the variance.
a character string describing the alternative hypothesis.
a character string indicating what type of statistical test was performed.
a character string giving the name of the data.
# NOT RUN {
data(cars93) # Dataset provided with the package
# Variance of the maximum price (MaxPrice) assuming that the population mean
# price is unknown
VUM.test(cars93$MaxPrice, alternative="two.sided", sigma=11, conf.level=0.95)
# }
Run the code above in your browser using DataLab