\begin{Schunk}
\begin{Sinput}
 summary(glm1)
\end{Sinput}
\begin{Soutput}
Call:
glm(formula = y2 ~ x2, family = binomial(logit))

Deviance Residuals: 
     Min        1Q    Median        3Q       Max  
-2.02397  -0.15142   0.01666   0.15136   2.02366  

Coefficients:
            Estimate Std. Error z value Pr(>|z|)    
(Intercept) -7.77205    1.31902  -5.892 3.81e-09 ***
x2           0.11784    0.01947   6.051 1.44e-09 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 274.372  on 199  degrees of freedom
Residual deviance:  73.971  on 198  degrees of freedom
AIC: 77.971

Number of Fisher Scoring iterations: 7
\end{Soutput}
\end{Schunk}
