BookmarkSubscribeRSS Feed
JJ_83
Obsidian | Level 7

I am working with a matched case control dataset and I am running the following proc logistic procedure. 

 

proc logistic descending data = data;
	strata newgroup;
	model new_case = exp;
run; 

newgroup is the matching variable. 

new_case is the binary outcome variable (1/0). 

exp is the binary exposure variable (1/0). 

 

I am trying to replicate results that my coworker did in stata.

 

So my first question is:

  1. How can I run logistic regression in sas with robust or cluster standard errors?
  2. What kind of standard errors does proc logistic use? (I am assuming it is not robust or cluster)

 

My apologies if these are really stupid questions!

2 REPLIES 2
Reeza
Super User
I think you want a CLASS statement for your categorical variable as well.

SAS Procedures are very well documented, did you review the documentation and not find what you were looking for?
https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=statug&docsetTarget=statu...

JJ_83
Obsidian | Level 7

Yes, I posted because I have not been able to find any answers through the documentation. 

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 480 views
  • 0 likes
  • 2 in conversation