BookmarkSubscribeRSS Feed
ChristinaMa96
Calcite | Level 5

I am analyzing a temporal trend(yr) of certain exposure(a b & c) by using the NHANES. I draw a plot with the median of each exposure and visually see a trend.

My code is like this:

proc suveyreg data=a;
   stratum stra;
   cluster clus;
   weight wt;
   model a=yr/anova;
run;

I am not sure if this is an appropriate approach because the exposures are right-skewed. Can somebody tell me how to get the normality test of the residual in ANOVA while using proc surveyreg? Should I use log-transformed exposure in the model?

 

I don't know if I can use Kruskal-Wallis test here.  Is there any survey-related procedure that could conduct the test? But I think maybe proc surveyregis more suitable based on the research question. Am I wrong?

 

Many thanks! 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 0 replies
  • 409 views
  • 0 likes
  • 1 in conversation