Can anyone tell me why and when should we use the "consec" contrast method of emmeans function (of emmeans package)? An exemple would help. thank you.
emmeans.out <- emmeans(model, consec ~ Time| Condition)
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.Sign up to join this community
I'll offer a succinct answer: it's useful when each level of a factor serves as a control for the next level.
For example, a drug experiment may have a factor
dose, perhaps with levels 10, 20, 40, and 60, being the available ones from the drug manufacturer. Comparing successive doses answers questions about what happens if we increase the dose to the next level, and it seems reasonable to have those comparisons as a set of pre-planned contrasts.
Keep in mind that the more comparisons you test, the more conservative the tests become because of multiplicity corrections such as "mvt" or "tukey" (the latter being appropriate only when doing all pairwise comparisons). Any time you can reduce the number of tests without sacrificing potentially important findings, the better.