title: How to conduct pairwise comparison in R like that in SPSS with "multcomp" package
body: <p>I have three factors: word, type and register. In SPSS, it is very easy to conduct a pairwise comparison (or simple comparison) in SPSS, the syntax is:</p>
  
  <pre><code>/EMMEANS=TABLES(word*register*type) COMPARE(type) ADJ (BONFERRONI)
  </code></pre>
  
  <p>And it will give me a result like this:</p>
  
  <p><a href="https://i.stack.imgur.com/9elzH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9elzH.jpg" alt="enter image description here"></a></p>
  
  <p>But how can I achieve this in R with Multcomp package? Say if I have a anova result like this: </p>
  
  <pre><code>library (multcomp)
  anova &lt;- aov (data, min~word*register*type)
  summary (anova)
  </code></pre>
  
  <p>How can I do SPSS-like pairwise comparisons?</p>