count positive group items
Posted: Sun Jul 31, 2011 9:53 am
hey there,
i'm trying to program non-parametric tests whether a certain set of observations is significantly different from zero.
in order to program the simple sign test and wilcoxon and corrado rank sign tests, i need to solve the following issue:
suppose i have the following series grouped (in reality they're many more):
rs1 rs2 rs3 rs4
+1 -2 +2 +3
-2 -3 -1 -1
+2 +4 -1 -2
...
can anybody think of a way to count the number of positive items in a row?
what i need to have is a series containing these numbers (concerning all the series in the group) which would look like this for my example:
pos
3
0
2
...
thankful for any advice!
i'm trying to program non-parametric tests whether a certain set of observations is significantly different from zero.
in order to program the simple sign test and wilcoxon and corrado rank sign tests, i need to solve the following issue:
suppose i have the following series grouped (in reality they're many more):
rs1 rs2 rs3 rs4
+1 -2 +2 +3
-2 -3 -1 -1
+2 +4 -1 -2
...
can anybody think of a way to count the number of positive items in a row?
what i need to have is a series containing these numbers (concerning all the series in the group) which would look like this for my example:
pos
3
0
2
...
thankful for any advice!