Learn R Programming

⚠️There's a newer version (0.6.4) of this package.Take me there.

merTools (version 0.2.0)

Tools for Analyzing Mixed Effect Regression Models

Description

Provides methods for extracting results from mixed-effect model objects fit with the lme4 package. Allows construction of prediction intervals efficiently from large scale linear and generalized linear mixed-effects models.

Copy Link

Version

Install

install.packages('merTools')

Monthly Downloads

7,537

Version

0.2.0

License

GPL (>= 2)

Maintainer

Jared Knowles

Last Published

February 19th, 2016

Functions in merTools (0.2.0)

REquantile

Identify group level associated with RE quantile
RMSE.merMod

Estimate the Root Mean Squared Error (RMSE) for a lmerMod
fastdisp

Display model fit summary of merMod objects, fast
ICC

Calculate the intraclass correlation using mixed effect models
REsim

Simulate random effects from merMod REsim simulates random effects from merMod object posterior distributions
shinyMer

Launch a shiny app to explore your merMod interactively
mkNewReTrms

Utility function to make RE terms objects
REcorrExtract

Extract the correlations between the slopes and the intercepts from a model
modelFixedEff

Extract averaged fixed effect parameters across a list of merMod objects
VarCorr.merModList

Extract the variances and correlations for random effects from a merMod list
draw

Draw a single observation out of an object matching some criteria
reTermNames

Get names of random effect terms in a model object
plotREsim

Plot the results of a simulation of the random effects
REextract

Extracts random effects
lmerModList

Apply a multilevel model to a list of data frames
levelfun

Parse merMod levels
REsdExtract

Extract the standard deviation of the random effects from a merMod object
subBoot

Bootstrap a subset of an lme4 model
reTermCount

Count the number of random effect terms
collapseFrame

Collapse a dataframe to a single average row
thetaExtract

Extract theta parameters from a merMod model
formulaBuild

Clean formula
print.merModList

Print the results of a merMod list
merTools

merTools: Provides methods for extracting and exploring results from merMod objects in the lme4 package.
wiggle

Assign an observation to different values
REimpact

Calculate the weighted mean of fitted values for various levels of random effect terms.
RHSForm

Parse merMod formulas
reOnly

Random Effects formula only
expectedRank

Calculate the expected rank of random coefficients that account for uncertainty.
superFactor

Create a factor with unobserved levels
randomObs

Select a random observation from model data
averageObs

Find the average observation for a merMod object
sanitizeNames

Clean up variable names in data frames
FEsim

Simulate fixed effects from merMod FEsim simulates fixed effects from merMod object posterior distributions
modelRandEffStats

Extract data.frame of random effect statistics from merMod List
buildModelMatrix

Build model matrix
stripAttributes

Remove attributes from a data.frame
hsb

A subset of data from the 1982 High School and Beyond survey used as examples for HLM software
subsetList

Subset a data.frame using a list of conditions
modelInfo

Extract model information from a merMod
plotFEsim

Plot the results of a simulation of the fixed effects
shuffle

Randomly reorder a dataframe
setup_parallel

Set up parallel environment
predictInterval

Predict from merMod objects with a prediction interval