WebStatR
Index | Models | History | Help

Results for selected analysis

The R codes for the current analysis



## The uploaded data are read into R using read.table
## data are saved in the data frame userdata

y<-userdata$V1
x1<-userdata$V2
x2<-userdata$V3

log.mod<-glm(y~x1+x2,family=binomial(link='logit'))
summary(log.mod)


The output from the current analysis



> userdata<-read.table('../../files/955360b19a62b7b943b6651067d63598.txt')
> ## The uploaded data are read into R using read.table
> ## data are saved in the data frame userdata
>
> y<-userdata$V1
> x1<-userdata$V2
> x2<-userdata$V3
>
> log.mod<-glm(y~x1+x2,family=binomial(link='logit'))
> summary(log.mod)

Call:
glm(formula = y ~ x1 + x2, family = binomial(link = "logit"))

Deviance Residuals:
Min 1Q Median 3Q Max
-2.1372 -1.0271 0.5320 0.9453 2.0338

Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.1694 0.2234 0.759 0.448139
x1 0.5417 0.2366 2.290 0.022012 *
x2 0.9111 0.2675 3.406 0.000658 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for binomial family taken to be 1)

Null deviance: 137.99 on 99 degrees of freedom
Residual deviance: 117.17 on 97 degrees of freedom
AIC: 123.17

Number of Fisher Scoring iterations: 3

>