Hi,
I am trying to run a ttest or a non-parametric rank-sum test pending the normality results of the Shapiro-Wilk's test.
I am going to simplify my data set somewhat. Let's say I have the population set into two groups by gender (0=male and 1=female). Cortisol is being measured as a continuous variable.
So far I have:
If the p-value for either gender category is <0.05, then the ranksum command should be run. I can use
to pull out the p-value, but it won't pull it out for one or the other, it kind of puts out gibberish.
Essentially trying to do what post #3 here is describing but for Shapiro-Wilk's test instead of Lavene's test. https://www.statalist.org/forums/for...ttest-to-excel
Thank you for any insights!
I am trying to run a ttest or a non-parametric rank-sum test pending the normality results of the Shapiro-Wilk's test.
I am going to simplify my data set somewhat. Let's say I have the population set into two groups by gender (0=male and 1=female). Cortisol is being measured as a continuous variable.
So far I have:
Code:
bys gender: swilk Cortisol ttest Cortisol,by(gender) unequal ranksum Cortisol, by(gender)
Code:
return list
Essentially trying to do what post #3 here is describing but for Shapiro-Wilk's test instead of Lavene's test. https://www.statalist.org/forums/for...ttest-to-excel
Thank you for any insights!
Comment