[R] discretization

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Jan 18 08:57:53 CET 2005


Weiwei Shi wrote:
> Hi, there:
> I have a variable whose distribution is far from
> normal and its qqnorm is S-shape, like a logisitic
> plot. My purpose is to discretize it into 2 or 3
> classes. (basically, a transformation from quantative
> to discrete). I am wondering if there is a good way to
> do that.

If this question is meant technical: ?cut
If you want to know how to choose the breaks, I'd suggest to think about 
the problem that you are going to analyze and to look at the data.

Uwe Ligges

> thanks,
> 
> Ed
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list