Learn R Programming

heplots (version 1.7.3)

uniStats: Univariate Test Statistics for a Multivariate Linear Model

Description

Univariate Test Statistics for a Multivariate Linear Model

Usage

uniStats(x, ...)

Value

An object of class c("anova", "data.frame") containing, for each response variable the overall \(R^2\) for all terms in the model and the overall \(F\) statistic together with its degrees of freedom and p-value.

Arguments

x

A "mlm" object fitted by link[stats]{lm} with two or more response variable3s

...

Other arguments, ignored

See Also

[glance.mlm()]

Examples

Run this code
iris.mod <- lm(cbind(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width) ~ Species, data=iris)
car::Anova(iris.mod)
uniStats(iris.mod)

data(Plastic, package = "heplots")
plastic.mod <- lm(cbind(tear, gloss, opacity) ~ rate*additive, data=Plastic)
# multivariate tests
car::Anova(plastic.mod)

Run the code above in your browser using DataLab