drop1.mlm {regr} | R Documentation |
drop1.mlm
/ add1.mlm
performs a test for the suitability
of dropping / adding each term in scope from / to a multivariate
regression or manova model.
## S3 method for class 'mlm' drop1(object, scope = NULL, test = c("Wilks", "Pillai", "Hotelling-Lawley", "Roy"), total = TRUE, add = FALSE, ...) ## S3 method for class 'mlm' add1(object, scope = NULL, test = c("Wilks", "Pillai", "Hotelling-Lawley", "Roy"), ...)
object |
a multivariate regression or manova object, possibly
with class |
scope |
see |
test |
a |
total |
logical specifying if the test for null model should also
be performed (and a |
add |
logical, not to be set typically; |
... |
potentially further arguments passed from or to methods;
for unused for |
a data.frame
matrix containing statistics for each term.
Note that regr
performs such a (Wilks) test automatically.
Bug: extract.AIC is not yet available
modification of R's summary.manova
by
Werner Stahel
data(d.fossileSamples, package="plgraphics") r.lm <- lm(cbind(sAngle,lLength,rWidth) ~ SST+Salinity+lChlorophyll+Region+N, data=d.fossileSamples) drop1(r.lm) ## should be the same as summary(manova(...)) for its last row. r.mregr <- regr(cbind(sAngle,lLength,rWidth) ~ SST+Salinity+lChlorophyll+Region+N, data=d.fossileSamples) r.mregr$drop1 drop1(r.mregr, test="Pillai")