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
- /
- Analytics
- /
- Stat Procs
- /
- How to use fixed effects for logit?

Topic Options

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

Highlighted
# How to use fixed effects for logit?

Options

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

03-20-2017 04:24 PM

Is the proper way to do fixed effects for logit this...

```
proc surveylogistic data=table;
strata year industry;
model y = x1 x2 x3 /rsquare link=logit;
run;
```

...Or this...

```
proc surveylogistic data=table;
class year industry;
model y = x1 x2 x3 year industry /rsquare link=logit;
run;
```

Thanks!

Accepted Solutions

Solution

03-24-2017
02:16 PM

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

03-23-2017 04:23 PM

All Replies

Solution

03-24-2017
02:16 PM

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

03-23-2017 04:23 PM

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

03-23-2017 04:38 PM

Dave,

Thanks for the reply. I've seen that and associated books. I get that doing one-way fixed effects can be done using the STRATA command. However, how about two-way fixed effects? My understanding is, doing STRATA var1 var2 would not necessarily two-way fixed effects.

Thanks!

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

03-24-2017 02:13 PM

I'm not aware of a 1-way, 2-way, n-way distinction for the stratified conditional model. The only purpose of the STRATA statement is to specify the variable (or variables) needed to distinguish those observations that are in the same stratum from those that are not. You would only need to specify more than one variable if all of the observations in a level of a variable are from more than one stratum. If the unique combinations of two (or more) variables are needed to correctly define the strata, then you would specify two (or more) variables in the STRATA statement.

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

03-24-2017 02:16 PM

Thank you.