Displaying 1 result from an estimated 1 matches for "q34b".
Did you mean:
34b
2007 Jun 15
2
method of rpart when response variable is binary?
...node
1) root 778 61.230080 0.08611825
2) x< 19.5 750 53.514670 0.07733333
4) x< 1.25 390 17.169230 0.04615385 *
5) x>=1.25 360 35.555560 0.11111110 *
3) x>=19.5 28 6.107143 0.32142860 *
If I use 1.25 and 19.5 as the cutting points, change x into factor by
>x2 <- cut(q34b,breaks=c(0,1.25,19.5,200),right=F)
The coef in y~x2 is significant and makes sense.
My problem is: is it OK use the default method in rpart when response
varibale is binary one? Thanks.
--
Ronggui Huang
Department of Sociology
Fudan University, Shanghai, China