Displaying 1 result from an estimated 1 matches for "fit1h".
Did you mean:
fit1
2006 Oct 22
2
"glm" function question
...ere's my code:
library(foreign)
library(car)
foo = read.table("C:/Documents and
Settings/Chris/Desktop/4330/criminals.dat", header=TRUE)
reoff = foo[ ,1]
race = foo[ ,2]
age = foo[ ,3]
gender = foo[ ,4]
educ = foo[ ,5]
subst = foo[ ,6]
prior = foo[ ,7]
violence = foo[ ,8]
fit1h = glm(reoff ~ factor(subst) + factor(violence) + prior +
factor(violence):factor(subst) + factor(violence):factor(educ) +
factor(violence):factor(age) + factor(violence):factor(prior))
summary(fit1h)
If you noticed, there's no part of my code that looks like:
family=binomial(link="logi...