search for: predictionsyes

Displaying 1 result from an estimated 1 matches for "predictionsyes".

2011 Aug 29
0
Rpart modelling a decisión tree and getting probability
...the deseasse), but we only have the combination of predictive variables for a particular person. We have created this code: library( rpart) fit1 <- rpart(sickness~ aetinghabit+gse+age+sex,   method="class", data=data) prediccion<-predict(fit1,bigdatabase, type="prob")   predictionsyes<-prediccion[,2] pred <- prediction(predictionsyes, datos$sickness) # but this is  My question is. How do I put the people's conditions in this model in order to get the people probability of getting this desease? It's possible to do a ROC curve using only this bigdatabase? Because...