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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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