Hi All,
I have a pretty simple question about PROC LOGISTIC that I just can not figure out. (Maybe its the holiday season but I think my brain stopped working two weeks ago.)
I am doing a comparison of graduation rates between students with no paying job (coded 0), one paying job (coded 1) and multiple paying jobs (coded 2). The variable is the NCES BPS variable "NumJobs09". I wanted to compare those with multiple jobs to those with one job in a CONTRAST statement because the model statement should give me comparisons between the "no job" people and the two other groups.
Below is the statement used (I have some other comparisons but are not of interest here, so I'll ignore them):
proc logistic data = logistic_data;
class var1 (ref='1') var2 (ref = '0') var3 (ref = '0') var4 (ref = '0')
numjob09 (ref = '0') / param = glm;
model bs (event='1')= var1 var2 var3 var4 var5 var6 numjob09 var8 var9 var10 / clodds=wald lackfit rsq;
contrast 'One Job vs. Multiple Jobs' numjob09 0 1 -1 / estimate;
format numjob09 j.;
....;
run;
I have a format that I put on it too:
proc format numjob09 j.,
value j 0 = 'No Job'
1 = 'One Job'
2 = 'More than one Job'
;
run;
But, when I checked the class level information, it shows:
| NUMJOB09 | More than one Job | 1 | 0 | 0 |
| | No Job | 0 | 1 | 0 |
| | One Job | 0 | 0 | 1 |
Also, the MLE estimates (with degrees of freedom listed in right column) suggest that the "One Job" group is the base:
| NUMJOB09 | More than one Job | 1 |
| NUMJOB09 | No Job | 1 |
| NUMJOB09 | One Job | 0 |
First question: Does the CONTRAST statement (which identifies the one job group as the base for the comparison with the multiple jobs group) override whatever reference you put on the model statement, specifically numjob (ref=0)? Is the a consequence of the param=glm option?
The odds ratio section (with point estimates) seems to confirm this:
| NUMJOB09 More than one Job vs One Job | 2.063 |
| NUMJOB09 No Job vs One Job | 1.308 |
The contrast test results seem to ignore the no job section (as requested):
| Contrast Test Results |
| Contrast | DF | Wald Chi-Square | Pr > ChiSq |
| One Job vs. Multiple Jobs | 1 | 29.1577 | <.0001 |
Second question: Since I have odds ratios for 2 vs. 1 and 0 vs. 1, can I just compare these two to get 2 vs. 0 (2v1 / 0v1) ?
Third question: Can someone please explain why the class level information lists 2-0-1 rather than 2-1-0?
Like I said, it's the holidays and I really should be enjoying my vacation, but this one thing is driving me insane.
Any help you can give would be greatly appreciated.
Thanks in advance,
Ray
-------------------------------------------
Raymond Mooring
Senior Statistical Consultant
Analysis Made Easy
-------------------------------------------