Hi!
I would like to compare the effects of variables between men and women to see whether the effects of the same variable on a dependent variable are different by sex. So I construct men's and women's data, respectively. In my research, a response variable is obesity(0=obese, 1=normal) and I run a logistic analysis.
I get the following results:
Men Women Men vs. Women
Education -.037(.002)*** -.047(.011)*** significant difference?
Income -.122(.003)** -.075(.032)*** significant difference?
I can say that education and income are related to obesity for both men and women. However, I also wonder whether there is a difference of the effects of education and income on obesity between men and women. This requires a comparison of two coefficients from men and women for the same variable. How can I test whether there is a difference of coefficients for each variable, education and income between men and women in SAS?
Thanks!
You need combine men's and women's data into one table, and use ESTIMATE . class SEX; ........... estimate 'F vs M' sex 1 -1 ;
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.
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.