Displaying 1 result from an estimated 1 matches for "htlv_carrier".
2006 Apr 07
1
rpart.predict error--subscript out of bounds
...[-1,2]) ~., Data[-1, -c(1:2 ) ], minbucket=2 )
> predict(fit, Data[1,],type='prob')
Error in predict.rpart(fit, Data[1, ]) : subscript out of bounds
but when I changes the parameter of type into 'class'
it works well
> predict(fit, Data[1,-c(1:2)],type='class')
[1] HTLV_Carrier
Levels: HAM_TSP HTLV_Carrier Leukemia Normal
Could anyone tell me what is the problem with it?
Thanks very much in advance!
[[alternative HTML version deleted]]