Skip to content

Instantly share code, notes, and snippets.

@mamonu
Last active April 19, 2019 02:10
Show Gist options
  • Save mamonu/4682d20a3212fc69844a85d339a79158 to your computer and use it in GitHub Desktop.
Save mamonu/4682d20a3212fc69844a85d339a79158 to your computer and use it in GitHub Desktop.
ordinal example
library(datasets)
library(sjmisc)
library(sjPlot)
library(ordinal)
set.seed(111)
ab <-datasets::airquality
ab$orddep<- as.factor(ab$Month)
ord.1 <- clm(orddep ~ Temp , data=ab)
# # in logits so not so easy to explain
summary(ord.1)
# # helpful since its in odds ratio format and not logits
exp(coef(ord.1))
# # helpful since its in odds ratio format and not logits but also looks better
tab_model(ord.1)
# # helpful to visualize ** this is how i understood it better.
plot_model(ord.1,show.intercept = TRUE,show.values = TRUE,
show.p = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment