Skip to contents

Predicted means and comparisons

Means of factor terms with their standard errors, intervals and pairwise comparisons; contrasts, joint tests and slopes.

predictmeans()
Predicted Means of a Linear Model
covariatemeans()
Predicted Means of a Linear Model with Covariate Variable(s)
contrastmeans()
Linear Contrast Tests for a Linear Model
specify_contrast()
Contrasts Written with Level Names
contrast_family()
Families of Contrasts among Means
pm_joint()
Joint F Tests of Contrasts among Means (Slices)
pm_slopes()
Slopes of a Covariate by Group
Kmatrix()
Matrix of Coefficients in a Linear Model

Results and plots

Stable tables (tidy, as.data.frame), plots drawn from results, and the advice kept with every result.

tidy(<predictmeans>) glance(<predictmeans>) as.data.frame(<predictmeans>) coef(<predictmeans>) vcov(<predictmeans>)
Predicted Means and Pairwise Comparisons as Data Frames
tidy(<pm_curves>) as.data.frame(<pm_curves>) print(<pm_curves>)
Curves and Their Differences as Data Frames
autoplot(<predictmeans>) plot(<predictmeans>) summary(<predictmeans>) print(<summary.predictmeans>)
Plots and Summary of Predicted Means
autoplot(<pm_curves>)
Plots of Curves, Surfaces and Their Differences
PMplot()
Level Plot of a Matrix of p-values
advice()
Advice on a Result

Degrees of freedom, tests and diagnostics

F tests with Kenward-Roger df, R-squared, variance components and model checks.

anova(<lmerMod>)
ANOVA Tables for lmer Fits with Kenward-Roger or Satterthwaite df
df_term()
Denominator Degrees of Freedom of the Means or Contrasts of an lmer Model
R2_model()
R-squared of a Model as Numbers
varcomp()
Variance Components with Standard Errors and Confidence Intervals
se_ranef() print(<pm_ranef>)
Standard Errors of the Predicted Random Effects
heritability()
Heritability on a Line-Mean (Entry-Mean) Basis
residplot()
Diagnostic Plots for a Fitted Model
CookD()
Cook's Distances of a Linear (Mixed) Model
pm_check()
Checks of a Fitted Model
pm_boxcox() pm_yeojohnson()
Box-Cox and Yeo-Johnson Transformations of a Response

Permutation and bootstrap tests

permmodels()
Permutation Tests of the Terms and Coefficients of a Model
permlmer()
Permutation Test of Random or Fixed Effects of Mixed Models
permindex()
Permutation Index
permstats()
Effect Sizes and Model Checks from Permutations
permcombine()
Combine Permutation Tests of Several Responses
bootmodels()
Parametric Bootstrap Tests

Semiparametric regression

Penalized splines and surfaces fitted as mixed models, with predictions, differences and derivatives.

semireg()
Semiparametric Mixed Models Fitted with lme4
semireg_tmb()
Semiparametric Mixed Models Fitted with glmmTMB
anova(<semireg>)
Tests for a Semi-Parametric Model
semipred()
Predicted Curves and Surfaces of a Semiparametric Model
semiboundary()
Boundary of the region covered by two-dimensional data

Extending to new model classes

pm_coef() pm_vcov() pm_basis() pm_df() pm_linkinv() pm_contrasts()
Supporting a New Model Class
pm_data()
Data of a Fitted Model, with the Response on Both Scales

Data

ATP
ATP Content of Preserved Dog Hearts
Body_length
Body Length of Beetles (Simulated)
Clinical
Multicentre Clinical Trial of a Skin Treatment
Caschool
California Test Score Data
copper copperKnots
Copper Grade at Sampling Points
DataExam5.2
Heights of Trees: 37 Seedlots at 6 Sites
Drug
Potency of Analgesic Drugs in Mice
growthIndiana
Growth of Indiana Children
ozoneCalif
Ozone Concentration and Meteorology in California
Poisson_ind
Egg Counts of Beetles (Simulated)
SBMDfem
Spinal Bone Mineral Density of Girls
scallop scallopKnots scallopBdry
Scallop Abundance off Long Island
wageTUnion
Trade Union Membership and Wages

Package

predictmeans-package
Predicted Means for Linear and Semiparametric Models
predictmeans-defunct smZ permglmer permglmmTMB permanova.lmer ci_mcp R2_glmm
Functions removed in predictmeans 2.0