Thanks for your reply, Paul. Yes, I'm looking for a way to account for continuous-time autocorrelation for the residuals, and I gleaned from several sources that the way to do this is to use a spatial power structure. For example, it is stated
here that ...
When time intervals are not evenly spaced, a covariance structure equivalent to the AR(1) is the spatial power (SP(POW)). The concept is the same as the AR(1) but instead of raising the correlation to powers of 1, 2,, 3, … , the correlation coefficient is raised to a power that is actual difference in times (e.g. |t1−t2| for the correlation between time 1 and time 2). This method requires having a quantitative expression of the times in the data so that it can be specified for calculation of the exponents in the SP(POW) structure. If an analysis is run wherein the repeated measures are equally spaced in time, the AR(1) and SP(POW) structures yield identical results.
I'm also relying heavily on the chapter by Schwartz and Stone (2007;
Google Books link) on
The Analysis of Real-Time Momentary Data who use the spatial power structure in their SAS Proc MIXED code (
documentation of Proc MIXED).
(As a matter of fact, it's probably the Schwartz-and-Stone analysis blueprint that other people have taken up as well).
Maybe it's just a terminological issue, as I found
a post on CrossValidated suggesting to use
corCAR1()in the context of a gls model. I've seen
corCAR1() used in a linear mixed-effects model, but not in a generalized lme model, though.
Thanks for pointing me to splines which I have never used. I do think that I need to address continuous -time autocorrelation because a participant's drug craving is likely to be more similar when assessed a few hours apart during the same day compared to when it's measured in the evening and then again in the morning of the following day.