Last active
April 19, 2019 02:10
-
-
Save mamonu/4682d20a3212fc69844a85d339a79158 to your computer and use it in GitHub Desktop.
ordinal example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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