BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mtaetntan
Calcite | Level 5

Does SAS have the native ability to implement a second order autoregressive covariance structure within either PROC MIXED or PROC GLIMMIX?  I am aware that I can specify a first order autoregressive structure with TYPE = AR(1) on either the RANDOM or REPEATED statement line.  However, using AR(2) returns and error of "Invalid order specification".

I am surprised that AR(2) does not appear to be a valid function.

Thanks,

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

Not available.  Do you think you could approximate it with either ANTE(1) or TOEPH?  Those look like they could be AR(2) under the right parameterization.  However, this really falls into the wild a&&ed guess category.

Steve Denham

View solution in original post

2 REPLIES 2
SteveDenham
Jade | Level 19

Not available.  Do you think you could approximate it with either ANTE(1) or TOEPH?  Those look like they could be AR(2) under the right parameterization.  However, this really falls into the wild a&&ed guess category.

Steve Denham

mtaetntan
Calcite | Level 5

Thanks, Steve.  I appreciate you confirming my suspicions. 

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 save with the early bird rate—just $795!

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
  • 2 replies
  • 2392 views
  • 3 likes
  • 2 in conversation