Open giuseppec opened 7 years ago
This isn't exactly a bug but it's not the best behavior. The line is the predicted value holding all other variables at their mean or mode (MEMs), which differs from the behavior of margins()
which calculates average marginal effects (AMEs). The AME in this example is -0.9258. The MEM is -2.219. Leaving this open but just wanted to note it is the (currently) intended behavior but probably not what the user actually wants.
This is trivial to fix, once variances of predictions are setup: https://github.com/leeper/prediction/issues/17