search for: aetinghabit

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

2011 Aug 29
0
Rpart modelling a decisión tree and getting probability
...have found.  Now we want to apply this model over a big dataset in order to determinate a possible outcome (probability of getting 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 o...