我无法使用插入符号包找到多项式logit模型的p值
提供了计算p值的here 但是多项式分布应该是二项式的吗?有谁知道多名义价格的正确分布和p值计算吗? (如果我在r中遵循ucla.edu或在Stata中进行多项式运算,则p值的重要性不相同) 提前谢谢
假设以下可重现的示例,如何在汇总函数中从插入符号获取p值
data("Fishing", package = "mlogit") ;head(Fishing)
set.seed(87)
inTrainingSet <- createDataPartition(Fishing$mode,p=.80,list=0)
Train <- Fishing[inTrainingSet,]
Test <- Fishing[-inTrainingSet,]
myControl <- trainControl(method = "cv",
number=10,
verboseIter = TRUE)
yy <- factor(Train$mode,levels = c( "beach", "pier", "boat","charter"))
xx <- Train[,2:10]
mmulti <- train(x=xx,
y=yy,
method = "multinom",
trControl = myControl,
tuneLength = 10); summary(mmulti)
multi.rrr = exp(t(coef(summary(mmulti)))) ; multi.rrr