Hello,
I am novice in JSL. I try to do a Wilcoxon test for a range of columns. My first column is "ID" and second is "SEX" which I used as parameter.
So, I wrote the following code to do analysis and export results to a journal :
dt = Current Data Table();
column_names = dt << Get Column Names;
for(i=3,i<=length(column_names),i++,
ow = ow || "
Oneway(
Y( :Name(" || column_names || ") ),
X( :SEX ),
Wilcoxon Test( 1 ),
Box Plots( 0 ),
Mean Diamonds( 0 )
); "
);
eval(parse(ow)) << Journal();
But it doesn't work and I don't know what is wrong with code.
I also have another question : "Is it possible to export only P value to a journal ? I used SendToReport (dispatch ..... ) but there are still section titles in results. What I need is only my column name and P value. Is it possible ?"
Please help me.
Thanks in advance