View source: R/bothsidesmodel.hotelling.R
| bothsidesmodel.hotelling | R Documentation | 
\beta are zero.Performs tests of the null hypothesis H0 : \beta^* = 0, where
\beta^* is a block submatrix of \beta as in Section 7.2.
bothsidesmodel.hotelling(x, y, z, rows, cols)
x | 
 An   | 
y | 
 The   | 
z | 
 A   | 
rows | 
 The vector of rows to be tested.  | 
cols | 
 The vector of columns to be tested.  | 
A list with the following components:
A list with the components of the Lawley-Hotelling T^2 test (7.22)
The T^2 statistic (7.19).
The F version (7.22) of the T^2 statistic.
The degrees of freedom for the F.
The p-value of the F.
A list with the components of the Wilks \Lambda test (7.37)
The \Lambda statistic (7.35).
The \chi ^2 version (7.37) of the \Lambda statistic, using Bartlett's correction.
The degrees of freedom for the \chi ^2
.
The p-value of the \chi ^2
.
bothsidesmodel, bothsidesmodel.chisquare,
bothsidesmodel.df, bothsidesmodel.lrt,
and bothsidesmodel.mle.
# Finds the Hotelling values for example 7.3.1
data(mouths)
x <- cbind(1, mouths[, 5])
y <- mouths[, 1:4]
z <- cbind(c(1, 1, 1, 1), c(-3, -1, 1, 3), c(1, -1, -1, 1), c(-1, 3, -3, 1))
bothsidesmodel.hotelling(x, y, z, 1:2, 3:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.