Displaying 1 result from an estimated 1 matches for "newprimary".
Did you mean:
getprimary
2010 Jul 28
0
nlme: augPred.lme for factor covariates
Hi everybody,
as you may be aware the function augPred.lme does not work as soon as
the covariate is a factor. The problem lies in the line
newprimary <- seq(from = minimum, to = maximum, length.out = length.out)
which does not make sense for factors. I think augPred.lme can be useful
for models with a factor covariate as well. Thus, I propose to change
the code to:
augPred.lme <- function (object, primary = NULL, minimum = min(primary),...