# R example of logistic regression
my.datafile <- tempfile(). > cat(file=my.datafile, ". + 0 9.2. + 0 12.9 ? + 0 12.5. + 1
13.5. + ", sep=" "). > ... Getting the LR test statistic and P-value in R (simple
logistic regression):. > anova(city.reg). Analysis of Deviance Table. Model:
binomial, link: logit. Response: Y. Terms added sequentially (first to last). Df
Deviance Resid.