[R] Which function for this?

lunarossa gloriaalbe1 at yahoo.it
Wed Oct 5 10:55:33 CEST 2011


I have a matrix like this

0.05 0.13 1.2 0 0 0 0 0 red
0       0     0  0 0 0 0 0 white
0     0.06   0  0 0 0 0 0 blue

If only 1 number in the first 8 columns is more than 0, in a new variable I
write 1, if they're all 0 or less, I write 0, so

0.05 0.13 1.2 0 0 0 0 0 red      1
0       0     0  0 0 0 0 0 white   0
0     0.06   0  0 0 0 0 0 blue     1

I want to understand if the value of the new variable (1 or 0) is correlated
to the colour.. I can use chi-square and what else? Anova and qhat else?

And to correlated the first 8 columns to the colour, can I use logit?

--
View this message in context: http://r.789695.n4.nabble.com/Which-function-for-this-tp3873856p3873856.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list