leeper / prediction

Tidy, Type-Safe 'prediction()' Methods
https://cran.r-project.org/package=prediction
Other
89 stars 14 forks source link

Change multi-level outcome methods #14

Closed leeper closed 7 years ago

leeper commented 7 years ago

Multi-category outcome models need to have an argument that specifies which category should be labelled as fitted. The discrete class/category prediction should be called something else (probably category, level, or fitted.category etc.).

In Stata it is outcome() (as in margins xvar, predict(outcome(3))), which is ambiguous.

This will simply be margins() calls because margins.polr(), etc. methods can cascade that argument (or cycle through all levels - but that's not what Stata does).