Skip to content
/ MVLM Public

R package to compute analytic p-values for linear models with multivariate outcomes

Notifications You must be signed in to change notification settings

dmcartor/MVLM

Repository files navigation

MVLM

Fit linear models with multivariate outcomes (i.e., MANOVA and multivariate multiple regression) with analytic p-values.

The most recent version can be installed from github using the devtools package:

devtools::install_github("dmcartor/mvlm", build_vignettes = TRUE)
library(MVLM)

or directly from CRAN:

install.packages(MVLM)
library(MVLM)

Usage

For a complete illustration of the package, see the package vignette by running the following line in the R console:

vignette('mvlm-vignette')

Example

data(mvlmdata)

Y <- as.matrix(Y.mvlm)

# Main effects model
mvlm.res <- mvlm(Y ~ Cont + Cat + Ord, data = X.mvlm)
summary(mvlm.res)

# Include two-way interactions
mvlm.res.int <- mvlm(Y ~ .^2, data = X.mvlm)
summary(mvlm.res.int)

About

R package to compute analytic p-values for linear models with multivariate outcomes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages