Learn R Programming

Mixed Model ANOVA and Statistics for Education - mixlm

Installation

# Install release version from CRAN  
install.packages("mixlm")  
# Install development version from GitHub  
devtools::install_github("khliland/mixlm")

Contents

  • Linear mixed models:
    • Classical LMM using r() around random effects, e.g., y ~ x * r(z).
    • Support for various coding schemes.
    • Sums-of-squares type I/II/III.
    • Support for REML/ML.
  • Textbook versions of statistical methods:
    • Step-wise variable selection methods.
    • Best subsets.

Copy Link

Version

Install

install.packages('mixlm')

Monthly Downloads

547

Version

1.4.3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kristian Hovde Liland

Last Published

August 20th, 2025

Functions in mixlm (1.4.3)

prop.test.ordinary

Test of Equal or Given Proportions in text-book version
is.balanced

Balance cheking of models.
hasseMod

Hasse Diagram from Linear Model
print.AnovaMix

Print method for objects of class(AnovaMix) and class(AnovaMixMLM)
forward

F-test based model effect selection for linear models.
glm

Fitting Generalized Linear Models
lm

Fitting Linear Models
print.summary.lmm

Summarizing Linear Model Fits
fparse

Effects of formulas.
rparse

Removes function r() from formulas.
plotprops

Property plots for relevant component analysis
spearson

Standardized Pearson residuals
t_test

Text book versions of t-tests and z-tests.
simple.glht

Pairwise comparison with multiple testing compensation.
tally

Tally of discrete numbers
AnovaMix

Mixed model least squares analysis of variance (mixed ANOVA).
contr.weighted

Contrast matrix for weighted effect coding
anova_reg

Analysis of variance for regression.
confusion

Confusion matrix.
Anova.lmm

Analysis of variance with SS type II or III (including mixed models).
PRESS

Prediction fits
CIgrandMean

Confidence interval for the grand mean of a linear model
anova.lmm

Analysis of variance (sequential SS)
best.subsets

F-test based best subset selection.
effect.labels

Create new effect labels for lm