I have 2 variables male, female
and mortality rate
I use proc ttest to test the NULL
do I use proc mix to test for normality
and If normality is broken then we need to use the willcoxon rank sum test?
can you help me with the order.>
below is my code
F test;
proc ttest data = Project;
class sex;
where sex in ("f" "m");
var rate;
run;
quit;
*check residue for normality;
proc mixed data = Project;
class sex;
where sex in ("f" "m");
model rate = sex/residual;
run;
quit;
*wilcoxom rank sum;
proc npar1way data = Project wilcoxon;
class sex;
where sex in ("f" "m");
var rate;
run;
quit;
I do not need to do a tukey test for pair. right?
* Tukey;
proc glm data=project;
class sex;
where sex in ("f" "m");
model rate = sex / solution;
means sex / tukey;
run;
quit;
then if I use proc ttest, I do not need to do proc mixed test?
@ralphbenno wrote:
then if I use proc ttest, I do not need to do proc mixed test?
I've never used PROC MIXED so no idea.
If your class variable has only two levels , TTest is good enough,
If you worry about whether rate is normal distribution or not, then wilcoxom rank sum test is better choice.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.