Re: [R] how to categorize continuous variable when useing regression

2009-09-16 Thread Frank E Harrell Jr
Manli Yan wrote: assume dependent variable y( continuous),independent variable x ( continuous),I try to categorize x with some interval,such that,those intervals would has most significant different effect on y. any one knows which method I should apply,I know it will cause the loss of

Re: [R] how to categorize continuous variable when useing regression

2009-09-16 Thread Wensui Liu
there are so many ways to categorize the continuous variable in practice, such as knowledge-based, percentile-based, or model-based (i.e. regression tree). On Wed, Sep 16, 2009 at 9:41 PM, Manli Yan wrote: > assume dependent variable y( continuous),independent variable x ( > continuous),I t

Re: [R] how to categorize continuous variable when useing regression

2009-08-20 Thread Frank E Harrell Jr
Manli Yan wrote: assume dependent variable y( continuous),independent variable x ( continuous),I try to categorize x with some interval,such that,those intervals would has most significant different effect on y. any one knows which method I should apply,I really need some hints,thanks so m