BookmarkSubscribeRSS Feed
trekvana
Calcite | Level 5
Hello all,

I am using type=sp(pow)(time) for an AR(1) model with random times and I am getting two parameter estimates: the residual variance s^2 and correlation coef p

For my example s^2=8.8771 and p=.04977

Now my R matrix is a 2x2 matrix [{8.8771, 3.4493},{3.4493,8.8771}]

I can see why the diagonal elements which are the variances are 8.8771 but I dont understand where the 3.4493 is coming from. Is it the covariance between to adjacent observations?

Is cov(i,j)=s^2*p^|t(i)-t(j)| ????

Thanks
1 REPLY 1
SteveDenham
Jade | Level 19
According to the PROC MIXED documentation,

cov(i,j) = s^2*p^(d(i,j)) where d(i,j) is the Euclidean distance between i and j

d(i,j) = sqrt( sum [over m from 1 to k](c(m,i) - c(m,j)^2).

So for one dimensional data, like time series, your expression should be correct.

Steve Denham

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1315 views
  • 0 likes
  • 2 in conversation