#Logistic Model Based Recursive Partitioning
library(party)
data("PimaIndiansDiabetes2",package = "mlbench")
set.seed(16)
n=nrow(PimaIndiansDiabetes2)
train <- sample(1:n, 600, FALSE)
#mass and pedigree are conditioning varibles for logistic regression
f<-"diabetes ~ mass + pedigree|glucose + pregnant + pressure + triceps +
insulin + age"
fit <- mob(f, data=PimaIndiansDiabetes2[train, ], model=glinearModel, family=binomial())
plot(fit)
形式错误(适合):缺少参数“适合”,没有默认参数缺少的确切含义,请澄清