Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>lme and nlme fit through maximum likelihood or restricted maximum likelihood (the latter is the default), so your results will be based on either of those methods</p> <p><code>summary(fm1Machine)</code> will provide you with the output that includes the means and standard errors:</p> <pre><code>....irrelevant output deleted Fixed effects: score ~ Machine Value Std.Error DF t-value p-value (Intercept) 52.35556 2.229312 46 23.48507 0 MachineB 7.96667 1.053883 46 7.55935 0 MachineC 13.91667 1.053883 46 13.20514 0 Correlation: ....irrelevant output deleted </code></pre> <p>Because you have fitted the fixed effects with an intercept, you get an intercept term in the fixed effects result instead of a result for MachineA. The results for MachineB and MachineC are contrasts with the intercept, so to get the means for MachineB and MachineC, add the value of each to the intercept mean. But the standard errors are not the ones you would like.</p> <p>To get the information you are after, fit the model so it doesn't have an intercept term in the fixed effects (see the <code>-1</code> at the end of the fixed effects:</p> <pre><code>fm1Machine &lt;- lme(score ~ Machine-1, data = Machines, random = ~ 1 | Worker ) </code></pre> <p>This will then give you the means and standard error output you want:</p> <pre><code>....irrelevant output deleted Fixed effects: score ~ Machine - 1 Value Std.Error DF t-value p-value MachineA 52.35556 2.229312 46 23.48507 0 MachineB 60.32222 2.229312 46 27.05867 0 MachineC 66.27222 2.229312 46 29.72765 0 ....irrelevant output deleted </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload