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

1,428

Version

1.4.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kristian Hovde Liland

Last Published

January 14th, 2025

Functions in mixlm (1.4.2)

is.balanced

Balance cheking of models.
plotprops

Property plots for relevant component analysis
fparse

Effects of formulas.
print.summary.lmm

Summarizing Linear Model Fits
print.AnovaMix

Print method for objects of class(AnovaMix)
prop.test.ordinary

Test of Equal or Given Proportions in text-book version
forward

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

Fitting Linear Models
hasseMod

Hasse Diagram from Linear Model
glm

Fitting Generalized Linear Models
tally

Tally of discrete numbers
spearson

Standardized Pearson residuals
t_test

Text book versions of t-tests and z-tests.
rparse

Removes function r() from formulas.
simple.glht

Pairwise comparison with multiple testing compensation.
CIgrandMean

Confidence interval for the grand mean of a linear model
contr.weighted

Contrast matrix for weighted effect coding
anova_reg

Analysis of variance for regression.
confusion

Confusion matrix.
anova.lmm

Analysis of variance (sequential SS)
PRESS

Prediction fits
best.subsets

F-test based best subset selection.
effect.labels

Create new effect labels for lm
Anova.lmm

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

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