Skip to content

R package to create diagnostic plots for nested lme objects. Convenience function to access plot.lme etc.

Notifications You must be signed in to change notification settings

guhjy/lmediaplots

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

lmediaplots

R-package to create diagnostic plots of nested lme models

Provides a convenience function to create diagnostic plots for the grouping elements in the random effects in a lme object. Creates plots per group of either the within-group residuals for each random effect, standardised vs fitted values or qq plots.

See

help(package = lmediaplots) 

for details on the functions provided by this package.

Installation

Installation straight from github (if package "devtools" is already installed) via

devtools::install_github("MarkusLoew/lmediaplots")

Installation under Windows might require the installation of Rtools.

Example usage

Based on a model from Pinheiro, Bates (2000) Mixed-Effect Models in S and S-PLUS. Springer.

library(nlme)
library(lmediaplots)
fm1Machine <- lme(score ~ Machine, data = Machines, random = ~ 1 | Worker/Machine)
lmediaplots(fm1Machine)
lmediaplots(fm1Machine, plottype = "resvfit")
lmediaplots(fm1Machine, plottype = "qq")
lmediaplots(fm1Machine, plottype = "qq")[1]

About

R package to create diagnostic plots for nested lme objects. Convenience function to access plot.lme etc.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%