[R] breaking multi-modal histograms down into combinations of unimodal distributions

2009-08-28 Thread Thomas Groen
Dear All, Does anybody know if there is a functionality in R to break histograms that show a clear bi-modal (or multi-modal) distribution into a series of unimodal histograms that added up result in the original histogram? I was thinking of using QQ-plots (for which tools are available in R), and

[R] creating subsets within lm()

2009-07-30 Thread Thomas Groen
Dear All, the lm() function has the possibility to create a subset of the possible explaining variables that you have. However, in the help there is no example how to use this subset option. I tried the following: