Closed pbreheny closed 7 years ago
visreg
cannot currently handle this type of model (one for which the prediction is a vector of class probabilities, rather than just a single number), but certainly, it would be a nice improvement if it could. I hope to get this improvement into the next version.
This issue has been fixed by commit 1a526c455c0fc13424ae97cf123a09f9c2f877c4
Long story: This is part of a larger issue: how should visreg handle objects that return matrices as predictors? This also comes up in multiple outcome regression models ("mlm"
) and quantile regression (#16). The existing infrastructure in visreg
is to return a list of visreg objects in this case, one for each outcome. In the case of multinomial regression, we'd also like the ability to overlay them, which means collapsing them from a list into a single visreg object, then plotting.
Short story: This works now, but you'll have to specify collapse=TRUE
. See enhances-nnet.R for details and a working, reproducible example.
David Mouillot (Université Montpellier) writes: