="th">.coef</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">(Intercept)</td>
<td style="text-align: right;">0.028282</td>
</tr>
<tr class="even">
<td style="text-align: left;">X</td>
<td style="text-align: right;">1.018000</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><code>Y ~ X</code> gives the <em>wrong</em> answer. The coefficient on X should be <span class="math inline">\(-1\)</span>.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode r c