BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ritter13
Calcite | Level 5

2444.png255.png2333.png

 

Hi, I am a new user of SAS and I have some trouble with understanding of result of logistic regression.

 

For example, from type 3 analysis I know that race should have association with response variables as its p-value is small, but in the following estimation section, the different dummy variables of race have very large p-value. I don't know how to understand this part.

 

Can someone help me ?

 

Here is my code:

 

proc logistic data=exdata descending ;
class race
/ param=ref;
model Non_Statutory_Case_Filed= race;
run;

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

The Chi-squared test for RACE has p-value of 0.0050, indicating that the differences between the levels of your variable RACE are significantly different.

 

The p-values for the individual races (Asian, Black, etc.) indicate if that effect of that RACE is different from zero, and none of them are small, so the conclusion would be that the effects are not different from zero ... however, this is a different test than the one mentioned above which tests to see if the races are different from one another.

 

So which question do you really want the answers to?

 

I have never felt comfortable looking at the Type 3 effects. They can be confusing. They test things that maybe you aren't interested in. I feel that a better solution, and a much more interpretable solution, is to use the LSMEANS statement in PROC LOGISTIC to compare the different races. 

--
Paige Miller

View solution in original post

5 REPLIES 5
Reeza
Super User

You need to show the code or the design matrix so we can understand how you specified the categorical variables. For example, which parameterization method did you pick? If REF, which is the reference level? None is shown - did you filter the output somehow?

 

This example is a pretty detailed walk through of Logistic Regression:

https://go.documentation.sas.com/?docsetId=statug&docsetVersion=15.1&docsetTarget=statug_logistic_ex...

 

I'll move your question to the Stats forum so someone there can answer the rest once you've responded.

 


@Ritter13 wrote:

2333.png

 

Hi, I am a new user of SAS and I have some trouble with understanding of result of logistic regression.

 

For example, from type 3 analysis I know that race should have association with response variables as its p-value is small, but in the following estimation section, the different dummy variables of race have very large p-value. I don't know how to understand this part.

 

Can someone help me ?

 

Thanks


 

Ritter13
Calcite | Level 5
Thanks for your response, I have updated my question
PaigeMiller
Diamond | Level 26

The Chi-squared test for RACE has p-value of 0.0050, indicating that the differences between the levels of your variable RACE are significantly different.

 

The p-values for the individual races (Asian, Black, etc.) indicate if that effect of that RACE is different from zero, and none of them are small, so the conclusion would be that the effects are not different from zero ... however, this is a different test than the one mentioned above which tests to see if the races are different from one another.

 

So which question do you really want the answers to?

 

I have never felt comfortable looking at the Type 3 effects. They can be confusing. They test things that maybe you aren't interested in. I feel that a better solution, and a much more interpretable solution, is to use the LSMEANS statement in PROC LOGISTIC to compare the different races. 

--
Paige Miller
Ritter13
Calcite | Level 5

Thanks for your response!

 

Actually, I want to know that if the variable "race" have significant effect on the response variable, if the answer is yes, then what is the different effect of different races? For example, Asian have largest positive effect on response variable etc...

 

 

So I'm confusing about the result I got, Type 3 effect showed that race have some kind of relationship with response variable but p-value for individual races told me NO.

 

PaigeMiller
Diamond | Level 26

Adding: here's an example of using LSMEANS

https://documentation.sas.com/?cdcId=pgmmvacdc&cdcVersion=9.4&docsetId=statug&docsetTarget=statug_lo...

 

but I like the LINES option or the LINESTABLE option (which are not shown in that example) and you can get some nice plots of this information as well.

--
Paige Miller

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 4639 views
  • 3 likes
  • 3 in conversation