Hello,
I have ~300 continuous variables and I need to perform a kruskal-wallis test examining them across a 4-level variable. I have written a loop that simultaneously runs the test for all of them, but what I really want to do is output the p-values from all of the tables in order to easily filter them. I have tried to get the scalars from Kruskal-wallis to output the p-value, but there are only 3 listed, none of which are the p-value.
How would I pull the p-values out of this?
Thanks!
Clare
I have ~300 continuous variables and I need to perform a kruskal-wallis test examining them across a 4-level variable. I have written a loop that simultaneously runs the test for all of them, but what I really want to do is output the p-values from all of the tables in order to easily filter them. I have tried to get the scalars from Kruskal-wallis to output the p-value, but there are only 3 listed, none of which are the p-value.
Code:
local kruskal var var2 var3 var4 var5 var6 foreach var of local kruskal { kwallis `var', by(sptb_cst) }
Thanks!
Clare
Comment