Arguments

original data this was fitted on; if not given this will
attempt to be reconstructed

newdata

new data to be used for prediction; optional

Value

All tidying methods return a data.frame without rownames.
The structure depends on the method chosen.

tidy returns one row for each estimated effect, either
random or fixed depending on the effects parameter. If
effects = "random", it contains the columns

group

the group within which the random effect is being estimated

level

level within group

term

term being estimated

estimate

estimated coefficient

If effects="fixed", tidy returns the columns

term

fixed term being estimated

estimate

estimate of fixed effect

std.error

standard error

statistic

t-statistic

p.value

P-value computed from t-statistic

augment returns one row for each original observation,
with columns (each prepended by a .) added. Included are the columns

.fitted

predicted values

.resid

residuals

.fixed

predicted values with no random effects

glance returns one row with the columns

sigma

the square root of the estimated residual variance

logLik

the data's log-likelihood under the model

AIC

the Akaike Information Criterion

BIC

the Bayesian Information Criterion

deviance

returned as NA. To quote Brian Ripley on R-help:
McCullagh & Nelder (1989) would be the authoritative reference, but the 1982
first edition manages to use 'deviance' in three separate senses on one
page.

Details

These methods tidy the coefficients of mixed effects models
of the lme class from functions of the nlme package.

When the modeling was performed with na.action = "na.omit"
(as is the typical default), rows with NA in the initial data are omitted
entirely from the augmented data frame. When the modeling was performed
with na.action = "na.exclude", one should provide the original data
as a second argument, at which point the augmented data will contain those
rows (typically with NAs in place of the new columns). If the original data
is not provided to augment() and na.action = "na.exclude", a
warning is raised and the incomplete rows are dropped.