BookmarkSubscribeRSS Feed
TowfiqulAlam
Calcite | Level 5

Hello, I am trying to see if the association between education level and ideal cardiovascular health is different for Asian who stayed less than 10 years in the US vs. more than 10 years in the US. 

 

For the interaction effect I have constituted an interaction term (education level*length of stay)

For the effect measure modification, I have created flag variable where I have separated them into two strata, less than 10 years and more than 10 years.

I have separately ran the interaction effect model and the effect measure modification model. I am getting slightly different result for these two models. I thought the result would be the same as interaction and effect measure modification supposed to be the same. Can anyone help me clarifying the cause of this different result?

 

Interaction model:

PROC SURVEYLOGISTIC DATA=test8 NOMCAR;
STRATA SDMVSTRA;
CLUSTER SDMVPSU;
WEIGHT WTMEC6YR;
DOMAIN FLAG2; *FLAG2 is the Asian Americans population
CLASS Educ_Lvl (param=ref ref='4') GE10Yrs;*Compare <HS, HS, and some college to College graduate or more; *GE10Yrs is years in US (<10 vs 10+);
MODEL Metrics5cat (Event="1")= Educ_Lvl GE10Yrs Educ_Lvl*GE10Yrs/EXPB; *constituing an interaction term (education level*length of stay in US),*event 1:CV health:ideal;
Title "Overall type 3 effect/joint effect of education and length of stay on ideal CV health for Asians Americans";
RUN;

 

Result for interaction model:

Untitled.jpg

 

Effect measure modification model:

PROC SURVEYLOGISTIC DATA=test8 NOMCAR;
STRATA SDMVSTRA;
CLUSTER SDMVPSU;
WEIGHT WTMEC6YR;
DOMAIN FLAG3; *Created 2 groups of Asian Americans stratified by years in US (<10 vs 10+); *FLAG3=2 is stay in US >10 yrs;
CLASS Educ_Lvl (param=ref ref='4');*Compare <HS, HS, and some college to College graduate or more;
MODEL Metrics5cat (Event="1")= Educ_Lvl; *Model 1-unadjusted; *event 1:CV health:ideal;
Title "Unadjusted effect measure modification of ideal CV health for Asians Americans";
RUN;

 

Result for the effect measure modification:

Untitled2.jpg

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 321 views
  • 0 likes
  • 1 in conversation