can_lm | R Documentation |
This function uses candisc
to transform the responses in a
multivariate linear model to scores on canonical variables for a given term and then uses
those scores as responses in a linear (lm) or multivariate linear model (mlm).
The function constructs a model formula of the form Can ~ terms
where
Can is the canonical score(s) and terms are the terms in the original mlm,
then runs lm() with that formula.
can_lm(mod, term, ...)
mod |
A |
term |
One term in that model |
... |
Arguments passed to |
A lm
object if term
is a rank 1 hypothesis, otherwise a mlm
object
Michael Friendly
candisc
, cancor
iris.mod <- lm(cbind(Petal.Length, Sepal.Length, Petal.Width, Sepal.Width) ~ Species, data=iris)
iris.can <- can_lm(iris.mod, "Species")
iris.can
car::Anova(iris.mod)
car::Anova(iris.can)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.