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

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Regression using maximum likelihood estimation

- Subscribe to 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
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-14-2016 09:27 PM

I need to run a distributed lag regression with a lagged dependent variable of the form:

St = µ + βAt + λSt−1 + v

where v = et - λet-1

According to the literature this needs to be computed using MLE rather than OLS. Proc reg obviously uses OLS, so what PROC do I need to run?

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

07-14-2016 10:06 PM

Use PROC GENMOD :

```
proc genmod data=sashelp.class;
model weight=age height/dist=normal link=identity noscale;
run;
```

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

07-14-2016 10:35 PM

Hi,

This is a time series data. One key assumption in OLS is that the errors are independent of each other. In your model residuals seem to be correlated which is not desirable to use OLS for time series data since the assumptions on which the classical linear regression model is based will be violated. Try looking into SAS procedures for time series analysis. This requires SAS ETS.

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

07-14-2016 11:37 PM

It is ARIMA Model. Check ARIMA Procedure .

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

07-15-2016 06:35 AM - edited 07-15-2016 06:36 AM

It needs to be a regression model as I need to see the coefficients rather than just forecast the future. So is PROC GENMOD what I need?

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

07-15-2016 03:04 PM

You can get "regression" coefficients from time series analysis--what @stat_sas says about the errors is absolutely correct. You could use @Ksharp's suggestion of PROC ARIMA, or look at PROC MODEL. If you do not have access to SAS/ETS, then fitting this sort of model is going to require a fair amount of macro code, as you will have to iteratively refit the data using one of the procedures that allow you to specify a time-dependent error structure--going back and forth between the original data and the lagged data.

Steve Denham

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

07-16-2016 09:16 PM

If you need constrain the coefficients sum to 1, I think you need PROC GENMOD + offset= option.
PROC ARIMA can't do that.