BookmarkSubscribeRSS Feed
sebai
Obsidian | Level 7

Hi,

The purpose of our study is to compare our results for the dietary diversity for women during 2 seasons: spring and summer.

We want to check if our confounding variables for women’s dietary diversity interact during the 2 seasons.

We used the following proc logistic to answer our question (I’m using SAS Enterprise Guide 6.1):

proc logistic data=results2  ;

class region (param=ref ref='1-Sud')

v_urban_rural (param=ref ref='rural')

season;

model Dietary_diversity (event='Yes')=  season region v_urban_rural region*season v_urban_rural*season ;

format season saison.;

run;

 

The code gave us the p-value for one group of the variable example: p-value for urban but it didn’t give us the p-value for rural !!! though we want to check the differences between the 2 seasons for all groups and not compare urban-rural between the 2 periods. So how can I ask for such information!!??

 

image.png

 

1 REPLY 1
PaigeMiller
Diamond | Level 26

The way SAS parameterized categorical (also called CLASS) factors, you do not want to interpret the regression coefficients to answer the question you have asked.

 

You want to use the LSMEANS statement, along with the LINES options to determine which levels of the categorical variables are different. This will provide clear answers to the question you have asked.

--
Paige Miller

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
  • 1 reply
  • 1445 views
  • 2 likes
  • 2 in conversation