C:\sta6167>C:\progra~1\R\R-2.4.0\bin\Rterm --vanilla R version 2.4.0 (2006-10-03) Copyright (C) 2006 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pdf("westnilesc.pdf") > > wnsc <- read.fwf("C:\\data\\westnilesc.dat", + width=c(24,3,8,8,8,8,8,12,12), + col.names=c('cnty','wnbird', 'wnequine', 'farms', 'area', + 'pop', 'humdens', 'posbrdrt', 'poseqnrt')) > > wnsc1 <- data.frame(wnsc) > > attach(wnsc1) > > wnsc.mod1 <- glm(formula = wnequine ~ offset(log(farms)) + + posbrdrt + humdens + posbrdrt:humdens, family=poisson(log)) > > summary(wnsc.mod1) Call: glm(formula = wnequine ~ offset(log(farms)) + posbrdrt + humdens + posbrdrt:humdens, family = poisson(log)) Deviance Residuals: Min 1Q Median 3Q Max -1.6503 -1.0730 -0.7553 0.3282 2.5228 Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -6.982e+00 3.664e-01 -19.055 < 2e-16 *** posbrdrt 5.330e+03 1.596e+03 3.340 0.000837 *** humdens 5.903e-04 1.673e-03 0.353 0.724188 posbrdrt:humdens 2.600e+01 1.238e+01 2.100 0.035706 * --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 (Dispersion parameter for poisson family taken to be 1) Null deviance: 109.324 on 45 degrees of freedom Residual deviance: 62.007 on 42 degrees of freedom AIC: 122.54 Number of Fisher Scoring iterations: 6 > > > > > dev.off() null device 1 >