strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
609 stars 92 forks source link

get_model_data does not provide predictions for ordinal models (function clmm) #949

Closed RadimChvaja closed 2 months ago

RadimChvaja commented 2 months ago

Hey. Something had to change in a meantime becuase when I wanted to run older code to calcualte predictionc from ordinal model, get_model_data does not work. Predicted column should display numbers between 0-1 as probabilities. It is probably something wrong with ggeffects because it is used by get_model_data. Don't you know how to fix it? Thank you very much for any help.

get_model_data(ind_main, type = "pred", terms = "covid_others")

Predicted probabilities of religiosity

religiosity: 1

covid_others | Predicted | group_col

       0 | religiosity: 1 |         1
       1 | religiosity: 1 |         1

religiosity: 2

covid_others | Predicted | group_col

       0 | religiosity: 2 |         1
       1 | religiosity: 2 |         1

religiosity: 3

covid_others | Predicted | group_col

       0 | religiosity: 3 |         1
       1 | religiosity: 3 |         1

Adjusted for:

RadimChvaja commented 2 months ago

The problem is longer.