BookmarkSubscribeRSS Feed
Lakhpreet
Calcite | Level 5

Hello, 

 

I'd like to produce the marginal effects from a linear regression. I'm not sure how to modify my code to produce these values. In Stata, the command I would use is "margins(variable)" after running a regression. Is there an equivalent process in SAS? Or must these be calculcated manually? 

 

Thank you,

Preeti 

3 REPLIES 3
PGStats
Opal | Level 21

Please show us your SAS code.

PG
Ksharp
Super User
You mean this ?

http://blogs.sas.com/content/iml/2015/09/10/plot-distrib-reg-model.html

http://blogs.sas.com/content/iml/2015/09/16/plot-distrib-exp.html
StatDave
SAS Super FREQ

Predictive margins and marginal effects for predictors in generalized linear and GEE models are available using the Margins macro

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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