From a fitted lmer
model. Note: not transformation of the predictors was done.
lmer.model=lmer(share ~ gender+ age_group + overall_photo_share_freq_group+
affiliative_score_group*valence_group*condition+
self_enhancing_score_group*valence_group*condition+
self_defeating_score_group*valence_group*condition+
aggressive_score_group*valence_group*condition+
(1|pid), data = picshare_df, REML = FALSE)
I extracted the means:
lsmeans(lmer1.model, ~condition*valence_group*self_defeating_score_group, at=c(valence_group="very_positive", self_defeating_score_group="High"),options = list(type = "response"))
condition valence_group self_defeating_score_group lsmean
baseline very_positive High -0.32
perspective_taking very_positive High 0.061
privacy_perspective very_positive High -0.2382
When I plot interactions using cat_plot
from interactions
package I get the folioing graph.
cat_plot(model=lmer1.model, pred= condition, modx =self_defeating_score_group, mod2 = valence_group, plot.points = FALSE, geom = "line", line.thickness=2,pred.point.size=6, interval = FALSE, vary.lty=TRUE, modx.values = c("High"), mod2.values = c("very_positive"))
The lsmeans
have highest value for `perspective_taking' condition. But in the interaction plots, this configuration has the lowest value.
Does the interaction plot shows something different than the group/cell means?