search for: eldat

Displaying 2 results from an estimated 2 matches for "eldat".

Did you mean: ecdat
2006 Feb 19
2
Converting factors back to numbers. Trouble with SPSS import data
...with read.spss from the foreign library? Here's why I ask. My colleague sent an SPSS data set. I must replicate some results she calculated in SPSS and one problem is that the numbers used in SPSS for variable values are not easily recovered in R. I'm comparing 2 imported datasets, "eldat" (read.spss with No convert-to-factors) and "eldatfac" (read.spss with convert-to-factors) If I bring in the data without conversion to factors: library(foreign) eldat <- read.spss("18CitySCBSsorted.sav", use.value.labels=F, to.data.frame=T) I...
2006 Mar 01
0
Specification decisions in glm and lmer
...om intercept to represent diversity across cities. I want something that works like anova() might. What to do? > gl1 <- glm ( RE2TRCOP~ AGE + POLINT + HAPPY + EFFCOM + TRNEI +GRPETH + TRBLK + BLKCHIEF + RCOPDIFF+ RCOPRATE + RCOPBKIL + RCRIM3YR + RPCTBLAK, family=binomial(link=logit),data=eldat) > summary(gl1) Call: glm(formula = RE2TRCOP ~ AGE + POLINT + HAPPY + EFFCOM + TRNEI + GRPETH + TRBLK + BLKCHIEF + RCOPDIFF + RCOPRATE + RCOPBKIL + RCRIM3YR + RPCTBLAK, family = binomial(link = logit), data = eldat) Deviance Residuals: Min 1Q Median 3Q Max -1.512...