BookmarkSubscribeRSS Feed
aayo
Obsidian | Level 7

Hello,

I have a non-normal data and I think I should use Friedman non-parametric test.

Question is to determine by var1 the effect of var2 & var3 on var4.

I tried the Friedman test using the following codes but I am not sure I am doing the correct thing as regards the question. 

 

/*using proc rank &glm*/

proc rank
data = dataname;
by var2;
var var4;
proc glm
data = dataname;
class var2 var3;
model var4= var2 var3;
by var1;
run;

 

/*using proq freq*/

proc freq

data=dataname;
tables var2*var3*var4 / cmh2 scores=rank noprint;

by var1;

run;

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!

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