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
- /
- GLS 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

11-26-2012 02:12 PM

I've spent a long time looking for this so I thought I'd post for some help.

C1i = β1+β2Q1i+β3(Q1i)^2+β4(Q1i)^3+εi, Var(εi) = σ^2*Q1i

there are 28 obs. on Cost(C) and Output(Q).

Find the gls estimates for β1, β2, β3, and β4. I have been trying to find the code in SAS to do this but I've had no luck. I am trying PROC MIXED and PROC CALIS procedures in SAS. Does anyone know the code to answer this question?

The first column in the attached file is C1 and the second is Q1.

Thanks.

Accepted Solutions

Solution

11-26-2012
10:03 PM

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

11-26-2012 10:03 PM

Reeza,

I don't think GLM can do that .

Var(εi) = σ^2*Q1i which mean model has random effect ,GLM only can take care of Fix effect, therefore

PROC MIXED is a good choice. and SteveDenham may help you , you should post it at Statistical Forum, he is always there.

Ksharp

All Replies

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

11-26-2012 02:52 PM

Try proc GLM, see the example in the docs

And some more tutorials here:

Solution

11-26-2012
10:03 PM

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

11-26-2012 10:03 PM

Reeza,

I don't think GLM can do that .

Var(εi) = σ^2*Q1i which mean model has random effect ,GLM only can take care of Fix effect, therefore

PROC MIXED is a good choice. and SteveDenham may help you , you should post it at Statistical Forum, he is always there.

Ksharp

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

11-27-2012 05:12 AM

Thanks for the help. I'm not very familiar with proc mixed or

proc calis, but that will change; when I have time. I've managed to get the correct answer using the just using the weight option in proc reg. I really would like to try the other options for the diagnostics they provide but I have a deadline.

Thanks again.