I fitted the following multinomial regression:
library(car)
p1<-c(1,2,3,4,3,4,3,4,3,2,1,2,1,2,1,2,3,4,3,2,3,4,3,2,2,2,3,4,3,3,4,3,4)
d1<-c(1,2,3,4,3,4,3,4,3,2,1,2,1,2,1,2,3,4,3,2,3,4,3,2,1,2,3,4,3,2,2,2,1)
d1<-as.ordered(d1)
library(nnet)
test<-multinom(p1~d1)
predi<-expand.grid(d1=c("1","2","3","4"))
pre<-predict(test,predi,type="probs")
The output is a table of the predicted probabilities for every coefficient. I can also order the results for the confidence interval of the coefficents with:
confint(test)
My question is: is it possible to get the results for the confidence interval for the predicted probabilities? It means for every amount in the "pre" output! PS: I found a similar question here in ["plotting confidence intervals"][1]Plotting confidence intervals for the predicted probabilities from a logistic regression
The main answer is perfect for my question, but I do not know how to combine with multinomial regression. I hope you understand my bad english :) Thank you for your help
summary(test)
... $\endgroup$confint(test)
and then you can go on... $\endgroup$