lme
fit. The
autocorrelation values are calculated using pairs of residuals within
the innermost group level. The autocorrelation function is useful for
investigating serial correlation models for equally spaced data.## S3 method for class 'lme':
ACF(object, maxLag, resType, ...)
lme
, representing
a fitted linear mixed-effects model."response"
, the "raw" residuals
(observed - fitted) are used; else, if "pearson"
, the
standardized residuals (raw residuals divided by the clag
and ACF
representing,
respectively, the lag between residuals within a pair and the corresponding
empirical autocorrelation. The returned value inherits from class
ACF
.ACF.gls
, plot.ACF
data(Ovary)
fm1 <- lme(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary,
random = ~ sin(2*pi*Time) | Mare)
ACF(fm1, maxLag = 11)
Run the code above in your browser using DataLab