[R-es] Chaid

MIKE DE LA HOZ miguelhoz en hotmail.com
Lun Ago 22 01:06:46 CEST 2016


Hi,


I am running a chaid tree using titanic dataset (see attachment)



setwd("C:/Users/miguel")

titanic <- read.csv("train.csv")
titanic.s <- subset( titanic, select = -c(PassengerId, Name ) )

ctrl <- chaid_control(minsplit = 20, minbucket = 5, minprob = 0)
chaidTitanic <- chaid(Survived ~ ., data = titanic, control = ctrl)



It looks like I get the following error

Error: is.factor(x) is not TRUE



can you please help me here? I am not able to follow this type of error.


Thanks

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20160821/79895191/attachment-0001.html>
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: train.csv
Type: application/vnd.ms-excel
Size: 59518 bytes
Desc: train.csv
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20160821/79895191/attachment-0001.xlb>


Más información sobre la lista de distribución R-help-es