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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1191 views
  • 0 likes
  • 2 in conversation