search for: cstq1

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

Did you mean: cst1
2009 Jun 18
1
recovering the name of a given value in a matrix
...numeric values. > cumsumtab 1 2 3 4 5 6 8 13 14 17 40 2 4 6 7 9 11 13 14 15 16 17 I'm trying to find a way of finding to which category ( in *names(cumsumtab) * ) belongs a given value (let's say Q1 <- 4.25). So far, I've tried the following: > Q1 <- 4.25 >cstQ1 <- cumsumtab-Q1 >cstQ1 1 2 3 4 5 6 8 13 14 17 40 -2.25 -0.25 1.75 2.75 4.75 6.75 8.75 9.75 10.75 11.75 12.75 > min(cstQ1[cstQ1>0]) [1] 1.75 Then I'm trying to recover the name of the class that 1.75 (the closest superi...