sim_slopes
seemingly not incorporating weights from lm() objects
#79
Labels
bug
Something isn't working
sim_slopes
seemingly not incorporating weights from lm() objects
#79
Hello, in probing an interaction from a weighted linear model fit using
lm()
the simple slopes analysis fromsim_slopes()
that is output does not (apparently) make use of the observation weights.For example, the model and simple slopes analysis below...
... returns the following results:
... but removing the weights argument from the call to
lm()
as below...... and then running
sim_slopes()
with an unweighted linear model results returns the same simple slopes results as above.Notably, submitting the weighted and unweighted
lm()
objects yields different results frominteract_plot()
. Further, the interaction plot generated by the weightedlm()
object matches one generated by asvyglm()
object, suggesting thatinteraction_plot()
is incorporating the weights butsim_slopes()
is not.Thank you in advance!
The text was updated successfully, but these errors were encountered: