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