Open vincentarelbundock opened 5 years ago
For reference, the problem seems to be related to this line:
https://github.com/leeper/margins/blob/master/R/build_margins.R#L53
polr
objects have several intercepts, so hard-coding "(Intercept)" won't work. In addition, polr
objects store intercept estimates in object$zeta
, whereas build_margins
tries to feed coef(model)
to jacobian
. Note that the polr
intercepts do appear in vcov(model)
.
Created on 2019-07-16 by the reprex package (v0.3.0)