Closed SixiangHu closed 8 years ago
Current modelPlot ignores the actual base of variables in a glm, instead, it recalcualtes the mean or mode of the variable and treat them as the base.
modelPlot
If modeller specified another base and used in glm, the modePlot may not recognise it, hence may give wrong "model prediction at base level" line.
modePlot
The solution could be simple as to let users to specify the base level by passing a list in which includes a name column and base level column.
Current
modelPlot
ignores the actual base of variables in a glm, instead, it recalcualtes the mean or mode of the variable and treat them as the base.If modeller specified another base and used in glm, the
modePlot
may not recognise it, hence may give wrong "model prediction at base level" line.