我正在使用 glmtree 函数,来自 partykit 包:

fit <- glmtree(formula= fD ~ 1 | Age + fGender + Qualification + fOccupation + SizeWorkplc + WorkExp, data=newdata, family="binomial", minsize = 50, maxdepth = 4, alpha = 0.9, prune = "AIC")

预测我正在使用的模型:

prob <-predict(fit,newdata=newdata,type=c("response"))

我想要预测的置信区间 . 我试过 se.fit=TRUEconfint 函数, interval="prediction" ,....

我将知道如何获得错误权衡图和由模型存在和缺失站点(一旦家族=“二项式”)预测的概率图的频率分布 .