search for: x2_cut

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

Did you mean: x1_cut
2009 Aug 03
1
apply cut function on various values (factor constrained)
...ctor(cut(X1,quantile(X1),include.lowest=TRUE)) # calculate quantiles given X1_cut X2QuantilesForX1_cut <-tapply(X2,X1_cut,quantile) # display quantiles X2QuantilesForX1_cut # now i want to code X2 values; taking as breaks X2QuantilesForX1_cut; code does not work, just for showing my intention X2_cut <- cut(X1,X2QuantilesForX1_cut, include.lowest=TRUE) ----------------------------------------------------------------------------------------- any help is very much appreciated - calle