title: How to extract the value (minimum difference) the function multcomp::glht is using to calculate the multiple comparisons of means in R?
body: <p>I have this example where I'd like to have multiple comparisons across treatments.
  Here is the data:</p>
  <pre><code>data.1 &lt;-read.csv(text = &quot;
  location,treat,response
  loc1,T1,120
  loc1,T2,60
  loc1,T3,59
  loc1,T4,10
  loc2,T1,129
  loc2,T2,55
  loc2,T3,59
  loc2,T4,8
  loc3,T1,134
  loc3,T2,60
  loc3,T3,58
  &quot;)
  </code></pre>
  <p>And this is what I did:</p>
  <pre><code>library(lme4)
  library(lmerTest)
  library(emmeans)
  library(multcomp)
  
  model.fit &lt;- lmer(response ~ treat + (1|location), data = data.1)
  
  model.fit.emmeans &lt;- emmeans(model.fit, ~ treat, 
                               options = list(estName = &quot;response&quot;))
  
  pairs.comp.glht&lt;-glht(model.fit, linfct=mcp(treat=&quot;Tukey&quot;))
  
  pairs.comp.glht.cld &lt;-cld(pairs.comp.glht)
  </code></pre>
  <p>Running this <code>pairs.comp.glht.cld</code> gave me the output I needed.</p>
  <p><a href="https://i.stack.imgur.com/n71EU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n71EU.png" alt="enter image description here" /></a></p>
  <p>I am looking for the value of the minimum difference to call a difference and display a different letter. I am assuming the value should be in this object: <code>pairs.comp.glht</code> or here <code>pairs.comp.glht.cld</code>, but I cannot extract the value.</p>