MVcis | R Documentation |
Calculate joint confidence intervals (Hotelling's T2 Intervals).
MVcis(data, segments = 51, level = .95, Vars2Plot = c(1, 2), include.zero = F)
data |
a multivariable dataset to compare to means |
segments |
number of line-segments used to draw ellipse. |
level |
draw elliptical contours at these (normal) probability or confidence levels. |
Vars2Plot |
variables to plot |
include.zero |
add the zero axis to the graph output |
This function calculates the Hotelling's T2 Intervals for a mean vector.
Assumption:
Population is a random sample from a multivariate population.
If the confidence ellipse does not cover c(0, 0), we reject the NULL that the joint confidence region is equal to zero (at the stated alpha level).
This function returns the Hotelling's T2 confidence intervals for the p-variates and its corresponding confidence ellipse at the stated confidence level.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
Johnson, R.A., Wichern, D.W. (2002) Applied Multivariate Statistical Analysis. Prentice Hall.
MVComp
data(College) MVcis(College, Vars2Plot = c(1, 2), include.zero = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.