uniStats: Univariate Test Statistics for a Multivariate Linear Model

View source: R/uniStats.R

uniStatsR Documentation

Univariate Test Statistics for a Multivariate Linear Model

Description

Univariate Test Statistics for a Multivariate Linear Model

Usage

uniStats(x, ...)

Arguments

x

A "mlm" object fitted by lm with two or more response variable3s

...

Other arguments, ignored

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.

See Also

[glance.mlm()]

Examples

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)

heplots documentation built on April 17, 2025, 1:08 a.m.