turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- Proc UCM VS Proc REG and the coefficient of determ...

Topic Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-01-2018 11:42 AM

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

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to RikardGard

06-01-2018 12:12 PM

The formula is in the docs