primary
. If object
has a grouping structure
(i.e. getGroups(object)
is not NULL
), predicted values
are obtained for each group. If level
has more than one
element, predictions are obtained for each level of the
max(level)
grouping factor. If other covariates besides
primary
are used in the prediction model, their average
(numeric covariates) or most frequent value (categorical covariates)
are used to obtain the predicted values. The original observations
are also included in the returned object.augPred(object, primary, minimum, maximum, length.out, ...)## S3 method for class 'lme':
augPred(object, primary = NULL,
minimum = min(primary), maximum = max(primary),
length.out = 51, level = Q, ...)
predict
method.object
(using getCovariate
), itmin(primary)
.max(primary)
.object
does not have a
grouping structure, all elements will be 1
), the predicted or
observed values, and the type of value in the third column:
original
for the observed values and predicted
(single
or no grouping factor) or predict.groupVar
(multiple levels of
grouping), with groupVar
replaced by the actual grouping
variable name (fixed
is used for population predictions). The
returned object inherits from class "augPred"
.plot.augPred
, getGroups
,
predict
fm1 <- lme(Orthodont, random = ~1)
augPred(fm1, length.out = 2, level = c(0,1))
Run the code above in your browser using DataLab