search for: between1

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

Did you mean: between
2011 Dec 07
1
Rank samples by breaks in hist and assign result as factor
...ng for each sample according to where it falls on the histogram, with a "1" to represent one tail of the hist, a "10" to represent the other tail, and a "5" for the median/mean. I have a number of different data sets to do this with and in all cases I need this ranking between1-10 regardless of the number of samples in each set. e.g., x=rnorm(50) h=hist(x,breaks=10) h$breaks [1] -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 So, I want to add a factor to x where if x is less than -2.0, then new factor="1"; if x is greater than -2.0 but x is less than -1.5, the...