\begin{Schunk}
\begin{Sinput}
 dat$xsq <- dat$x^2
 m1 <- lm(y ~ x + xsq, data = dat)
\end{Sinput}
\end{Schunk}
