Displaying 1 result from an estimated 1 matches for "deseasse".
Did you mean:
desease
2011 Aug 29
0
Rpart modelling a decisión tree and getting probability
...usent of diabetes and get a better understanding of what are the important factors in a particular chilean population. There are some importants variable that we 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")
predictionsye...