BookmarkSubscribeRSS Feed
RikardGard
Calcite | Level 5

So I have these two examples of code to keep the example simple. And it doesn't really matter which data you use it on, the difference will be there anyhow.

 

proc reg data = A_A_Data(where=(region="0114")) ;
model inrinflytt = utflyttare / noint;
run;

 

proc ucm data = A_A_Data(where=(region="0114"));
irregular;
model inrinflytt = utflyttare ;
run;

 

They both generate a very simple model without intercept. I however can not understand why the coefficient of determination differs between these two when the paramter estimates are exactly the same. Also the MSE differs between the two models. Which tells me that the UCM model is not simply y = bx.

 

Is it y = bx + e?

 

My guess is that it has something to do with the error/distrubance term but I can't figure out what it is. Is it that in the UCM it is estimated so the model is y = bx + e but in the proc reg, when estimating y, the model is y = bx. Then e is used for diagnostics, but not for predicting new y values.

 

Anyone who understand my problem and can help me out?

 

Kind regards,

Rikard

1 REPLY 1

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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