BookmarkSubscribeRSS Feed
YH
Calcite | Level 5 YH
Calcite | Level 5

Hi All,

I am new to SAS. I am starting to learn and apply proc UCM, and have a couple questions about it.

Could you help me understand how can I get the numerical fitted values on the training set (or on the historical record)? For example, if n0 and n1 are the first and last value of actual observation in the historical record separately, how can I get the numerical fitted values after estimation? Are those values stored under "S_NOIRREG" after using OUTFOR?

I am also confused by the ACF and PACF plots generated by SAS. Do they reflect ACF and PACF of predicted errors on the "Out of sample set" (or test set)? I re-plot the "Residuals" column by R, but found that they are not the same.....

Could you help me to understand these? I appreciate your help so much!

Best regards,

YH

1 REPLY 1
rselukar
SAS Employee

You can use the skipfirst= and back= options in the ESTIMATE statement to control the span of measurements used for parameter estimation (ESTIMATION SPAN).  The (one-step-ahead) residual diagnostics (such as ACF and PACF plots) are based on the ESTIMATION span.

Similarly the skipfirst= and back= options in the FORECAST statement control the span of measurements used for producing forecasts.  Miultistep-ahead-forecasts are produced based on the end of forecast span.

I do not know R implementation of the UCM models and cannot comment.  I think the UCM doc is reasonably complete and explains the meaning of all component estimates (filtered and smoothed) as well as the residual diagnostics.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

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