Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOrdinal models no longer include level names in predict() output #838
Comments
|
Thanks! In 2.11 I decoupled the handling of categorical and ordinal models much more than before, which now makes the internals easier to handle. Unfortunately, I overlooked that response category names are still beneficial to store in ordinal models. This should be fixed now. |
|
Awesome, thanks! |
In previous versions of brms (up to 2.10 at least), output of
predict()on an ordinal model would include the level names from the response variable in column names whensummary = TRUEand would include a"levels"attribute for column names whensummary = FALSE, which is very useful for plotting / interpreting model output. E.g.:Created on 2020-01-25 by the reprex package (v0.3.0)
As of the version of CRAN (2.11) and the current github version (reprex below), I no longer see level names in the output, only numbers. E.g.:
Created on 2020-01-25 by the reprex package (v0.3.0)
Is this a bug, or is there another way to retrieve the level names? Thanks!