Estimated Marginal Means of Linear Trends in R - Private-Projects237/Statistics GitHub Wiki
Overview
This wiki page will be summarizing information related to the emtrends()
function in the 'emmeans' package. This page uses examples from Interaction analysis in emmeans.
Interaction with covariates
When we have a continuous variable and factor interaction, we do not care about obtaining means from the factor like how we typically do using emmeans()
. Instead, what we want to do is obtain the slopes since the significant interaction indicates that the slopes from the continuous variable significantly differs across the levels of the factor!