BookmarkSubscribeRSS Feed
MMadi
Calcite | Level 5

 

I found that Firth’s penalized likelihood approach can be used insted of binary logistic regression in the prediction . However, I couldn’t find it in SAS university addition
So could you kindly please tell me how can I find it in this SAS addition
thanks
2 REPLIES 2
Rick_SAS
SAS Super FREQ

SAS procedures have hundreds of options. Only the most common options are surfaced through the tasks in SAS Studio and SAS UE. However, the tasks merely generate SAS code (shown in the Code tab) and you can always add options to the generated code.  In this case:

1. Consult the PROC LOGISTIC documentation to learn that the FIRTH option is specified on the MODEL statement.

2. Use the Binary Logistic Regression task to set up the model, but don't run it yet.

3. Click on the Code tab and click the Edit button.

4. The code will be copied to a new tab called something like Program 2. You can edit this program. Click at the end of the MODEL statement and type FIRTH before the semicolon.

5. Click the "running man"  icon to run the SAS code.

 

In the program output, you should verify that the FIRTH method was used by looking at the Model Information table. It will have a row that says: Likelihood penalty: Firth's bias correction

JacobSimonsen
Barite | Level 11

Using Firths penalized likelihood instead of the ordinary likelihood is an option in the model statement in proc logistic. It is still binary logistic regression so it is not right to say that you instead use Firths likelihood. Here is a simple example


data mydata;
  input n x exposure;
  cards;
100 10 0
100 5 1
;
run;
proc logistic data=mydata;
  class exposure(ref="0")/param=glm;
  model x/n=exposure/firth;
run;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 2 replies
  • 1773 views
  • 4 likes
  • 3 in conversation