Hi there, Here is the scenario:
I have a measurement of some sort for two variables, I would like to figure out a rough pattern between them. Let say if the values of the first variable are low, middle, high, and extremely high, then what would be the corresponding pattern of the second variable. The idea is not to find the 2d distribution, but plot a conditional distribution of the second variable based on the binning of the the first variable and then present it in a boxplot. I got the breakpoints for binning the first variables by a bi-modal density estimation. Now I need to bin the first variable accordingly and map them to a categorical value. Is there an R command that does the binning? Thanks, Robert ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.