# \donttest{
# estimate a multinomial logit model using example data
library(UPG)
data(program)
y = program[,1]
X = program[,-1]
results.mnl = UPG(y = y, X = X, model = "mnl")
# plot the results and sort coefficients by average effect size
plot(results.mnl, sort = TRUE)
# plot only variables 1 and 3 with custom group and variable names
# also, customize credible intervals and axis labels
plot(results.mnl,
include = c(1,3),
names = c("Custom 1", "Custom 2"),
groups = c("Alpha", "Beta"),
q = c(0.1, 0.9),
xlab = c("Custom X"),
ylab = c("Custom Y"))
# }
Run the code above in your browser using DataLab