Package: VetResearchLMM 2.0.0

VetResearchLMM: Linear Mixed Models: An Introduction with Applications in Veterinary Research

Data sets and analyses of Duchateau, Janssen and Rowlands (1998, ISBN:92-9146-038-9) "Linear Mixed Models: An Introduction with Applications in Veterinary Research", with an own engine for linear mixed models that gives the results of SAS PROC MIXED and PROC GLM: restricted and full maximum likelihood and Type 3 moment estimation of variance components; random coefficients with variance-component or unstructured covariance; compound-symmetry, first-order autoregressive, spatial power and unstructured residual covariance; the fixed-effects solution in the overparameterised coding; Type 3 and Type 1 tests with containment, residual, between-within, Satterthwaite (1946) <doi:10.2307/3002019> and Kenward and Roger (1997) <doi:10.2307/2533558> degrees of freedom; estimates and contrasts in the broad and narrow inference spaces; least-squares means with multiple comparisons; best linear unbiased predictions; expected mean squares; information criteria and likelihood ratio tests. Every published result of the book is reproduced and checked. With 'ggplot2' graphics, a plain-language interpretation of every result and a built-in 'shiny' application.

Authors:Muhammad Yaseen [aut, cre], Luc Duchateau [ctb], Paul Janssen [ctb], John Rowlands [ctb]

VetResearchLMM_2.0.0.tar.gz
VetResearchLMM_2.0.0.zip(r-4.7-any)VetResearchLMM_2.0.0.zip(r-4.6-any)VetResearchLMM_2.0.0.zip(r-4.5-any)
VetResearchLMM_2.0.0.tgz(r-4.6-any)VetResearchLMM_2.0.0.tgz(r-4.5-any)
VetResearchLMM_2.0.0.tar.gz(r-4.7-any)VetResearchLMM_2.0.0.tar.gz(r-4.6-any)
VetResearchLMM_2.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
VetResearchLMM/json (API)

# Install 'VetResearchLMM' in R:
install.packages('VetResearchLMM', repos = c('https://myaseen208.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/myaseen208/vetresearchlmm/issues

Pkgdown/docs site:https://myaseen208.com

Datasets:
  • ex121 - Example 1.2.1: comparing three doses of a drug
  • ex122 - Example 1.2.2: comparing two doses of a drug in a randomised block design
  • ex123 - Example 1.2.3: comparing two drugs with herds as experimental units
  • ex124 - Example 1.2.4: two drugs at two doses with two sizes of experimental units
  • ex125 - Example 1.2.5: two drugs at two doses in a split-plot design
  • ex126 - Example 1.2.6: variation in ELISA data
  • ex127 - Example 1.2.7: helminth resistance in sheep
  • ex31 - Example 3.1: two drugs and their doses, herds nested in drug
  • ex32 - Example 3.2: weaning weights of lambs by breed and sire
  • ex33 - Example 3.3: breed differences in susceptibility to trypanosomosis

On CRAN:

Conda:

quarto

5.36 score 19 scripts 384 downloads 19 exports 18 dependencies

Last updated from:19ad25235b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK179
source / vignettesOK282
linux-releaseOK173
macos-releaseOK143
macos-oldrelOK172
windows-develOK122
windows-releaseOK173
windows-oldrelOK164
wasm-releaseOK119

Exports:emmeans_mixed_modelreport_mixed_modelvlm_appvlm_app_objectvlm_blupvlm_citevlm_comparevlm_contrastvlm_emsvlm_estimatevlm_fitvlm_interpretvlm_lsmeansvlm_notationvlm_randomvlm_referencevlm_repeatedvlm_savevlm_theme

Dependencies:clicpp11data.tablefarverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Getting started with VetResearchLMM
Abstract | Why a mixed model? | The data | Fit the model | Read the results in plain language | Means, estimates and contrasts | Predicting random effects | Where next | References

Last update: 2026-11-10
Started: 2026-11-10

Getting started with VetResearchLMM (PDF)
Abstract | Why a mixed model? | The data | Fit the model | Read the results in plain language | Means, estimates and contrasts | Predicting random effects | Where next | References

Last update: 2026-11-10
Started: 2026-11-10

The examples of Chapter 3
Abstract | Example 3.1: doses nested in drug, with a covariate | Example 3.2: heritability and sire predictions | Example 3.3: covariance structures for repeated measures

Last update: 2026-11-10
Started: 2026-11-10

The examples of Chapter 3 (PDF)
Abstract | Example 3.1: doses nested in drug, with a covariate | Example 3.2: heritability and sire predictions | Example 3.3: covariance structures for repeated measures

Last update: 2026-11-10
Started: 2026-11-10

The examples of Chapters 1 and 2
Abstract | Example 1.3.2: expected mean squares | Example 2.2.1.7: one-way analysis of variance | Section 2.3.2: the models of Chapter 1 | Example 2.4.2.2: ML and REML | Example 2.4.3.1: best linear unbiased prediction | Examples 2.5.1.1 to 2.5.4.1: fixed effects, estimates and inference spaces | Example 2.6.1: general linear hypotheses

Last update: 2026-11-10
Started: 2026-11-10

The examples of Chapters 1 and 2 (PDF)
Abstract | Example 1.3.2: expected mean squares | Example 2.2.1.7: one-way analysis of variance | Section 2.3.2: the models of Chapter 1 | Example 2.4.2.2: ML and REML | Example 2.4.3.1: best linear unbiased prediction | Examples 2.5.1.1 to 2.5.4.1: fixed effects, estimates and inference spaces | Example 2.6.1: general linear hypotheses

Last update: 2026-11-10
Started: 2026-11-10

The methods of VetResearchLMM
Abstract | The model | Estimation | Likelihoods | Maximisation | Method of moments | Fixed effects | Denominator degrees of freedom | Inference spaces and prediction | Expected mean squares | Fit statistics | Notation | References

Last update: 2026-11-10
Started: 2026-11-10

The methods of VetResearchLMM (PDF)
Abstract | The model | Estimation | Fixed effects | Denominator degrees of freedom | Inference spaces and prediction | Expected mean squares | Fit statistics | Notation | References

Last update: 2026-11-10
Started: 2026-11-10

The VetResearchLMM application
Abstract | Pages | Deployment

Last update: 2026-11-10
Started: 2026-11-10

The VetResearchLMM application (PDF)
Abstract | Pages | Deployment

Last update: 2026-11-10
Started: 2026-11-10

Validation of VetResearchLMM
Abstract | The published values | Against other packages | Differences from the book

Last update: 2026-11-10
Started: 2026-11-10

Validation of VetResearchLMM (PDF)
Abstract | The published values | Against other packages | Differences from the book

Last update: 2026-11-10
Started: 2026-11-10

Readme and manuals

Help Manual

Help pageTopics
Plot a resultautoplot.vlm_result
Estimated marginal means for a fitted mixed modelemmeans_mixed_model emmeans_mixed_model.default emmeans_mixed_model.vlm_fit
Example 1.2.1: comparing three doses of a drugex121
Example 1.2.2: comparing two doses of a drug in a randomised block designex122
Example 1.2.3: comparing two drugs with herds as experimental unitsex123
Example 1.2.4: two drugs at two doses with two sizes of experimental unitsex124
Example 1.2.5: two drugs at two doses in a split-plot designex125
Example 1.2.6: variation in ELISA dataex126
Example 1.2.7: helminth resistance in sheepex127
Example 3.1: two drugs and their doses, herds nested in drug (part of the data)ex31
Example 3.2: weaning weights of lambs by breed and sire (part of the data)ex32
Example 3.3: breed differences in susceptibility to trypanosomosisex33
Example 1.3.2: expected mean squares in the fixed and the mixed modelExamp1.3.2
Example 2.2.1.7: one-way analysis of variance, an estimate and a contrastExamp2.2.1.7
Example 2.3.2: the mixed model descriptions of Chapter 2Examp2.3.2
Example 2.4.2.2: ML and REML estimates of variance componentsExamp2.4.2.2
Example 2.4.3.1: best linear unbiased prediction of sire effectsExamp2.4.3.1
Example 2.5.1.1: generalised least-squares estimates of the fixed effectsExamp2.5.1.1
Example 2.5.2.1: cell means as estimable functionsExamp2.5.2.1
Example 2.5.3.1: confidence intervals with Satterthwaite degrees of freedomExamp2.5.3.1
Example 2.5.4.1: broad and narrow inference spacesExamp2.5.4.1
Example 2.6.1: F tests of general linear hypothesesExamp2.6.1
Example 3.1: a designed experiment with doses nested in drug and a covariateExamp3.1
Example 3.2: sires nested in breed, heritability and breed comparisonsExamp3.2
Example 3.3: covariance structures for repeated measuresExamp3.3
Report a fitted mixed modelreport_mixed_model report_mixed_model.default report_mixed_model.vlm_fit
Linear mixed models in a web browservlm_app vlm_app_object
Best linear unbiased predictions of the random effectsvlm_blup vlm_blup.default
References of a result or of the packagevlm_cite vlm_cite.default
Compare fitted modelsvlm_compare vlm_compare.default
Analysis of variance with expected mean squaresvlm_ems vlm_ems.default
Estimates and contrasts of fixed (and random) effectsvlm_contrast vlm_contrast.default vlm_estimate vlm_estimate.default
Fit a linear mixed modelvlm_fit vlm_fit.default
Plain-language interpretation of a resultformat.vlm_interpretation print.vlm_interpretation vlm_interpret vlm_interpret.default
Least-squares meansvlm_lsmeans vlm_lsmeans.default
Notation of VetResearchLMMvlm_notation
Random-effects and residual covariance structuresvlm_random vlm_repeated
Published values used by the tests and vignettesvlm_reference
Save a figure (vector PDF by default)vlm_save vlm_save.default
ggplot2 theme of VetResearchLMMvlm_theme
Methods for VetResearchLMM resultsas.data.frame.vlm_result as.data.table.vlm_result format.vlm_result plot.vlm_result print.summary.vlm_result print.vlm_result summary.vlm_result vlm-methods