Closed TDJorgensen closed 2 years ago
Should we rewrite explicitly asking for names of each variable as separate arguments (focal predictor, moderator, interaction and y)?
@schoam4 I'd love to, but I'm worried about backwards compatibility, and making our recent tutorial inconsistent within less than a year of publication. Yves reported another related issue (#108). I'm going to try to wrap both of these up next week.
Oh damn, turns out the problem only exists when labeling one (not both) of the main-effect parameters and the moderator is listed first in nameX=
. The problem occurs (also in *MC) when creating labels for parameters that the user didn't label. What happens in the example above is that the first relevant row (regression slopes) of parTable()
belongs to f1
, which is nameX[2]
. Because someone (ahem) designed the loop over integer indices, it made the label using nameX[1]
(which is f2
, which had its own label from the syntax).
Fixed by replacing nameX[i]
with PT$rhs[ newRows[i] ]
in all 4 probing functions: 5205cc1
Fix this: