search for: x1g4_1

Displaying 1 result from an estimated 1 matches for "x1g4_1".

Did you mean: x1g2_1
2009 Jul 19
1
Index and dummy
...the group and equal to 0, otherwise. What I have done was: id=(6000) x1sort=sort(x1, decreasing=TRUE) x1g8_1=x1sort[1:750] x1g8_2=x1sort[751:1500] x1g8_3=x1sort[1501:2250] x1g8_4=x1sort[2251:3000] x1g8_5=x1sort[3001:3750] x1g8_6=x1sort[3751:4500] x1g8_7=x1sort[4501:5250] x1g8_8=x1sort[5251:6000] x1g4_1=c(x1g8_1, x1g8_2) x1g4_2=c(x1g8_3, x1g8_4) x1g4_3=c(x1g8_5, x1g8_6) x1g4_4=c(x1g8_7, x1g8_8) x1g2_1=c(x1g4_1, x1g4_2) x1g2_2=c(x1g4_3, x1g4_4) x1ng=c(x1g2_1, x1g2_2) After this I did the dummy vector (the example is for group4) dum= replace(matrix(0, 4, 1), cbind(4, 1), 0)...