Displaying 2 results from an estimated 2 matches for "logreg1".
Did you mean:
logreg
2008 Oct 23
0
error when using logistic.display within a loop
...ackage in a list, but got an error message "Error in eval(expr, envir, enclos) : y values must be 0 <= y <= 1". All the response variables have value of 0 or 1. It worked well for summary and anova but not for logistic.display in the loop.
Thanks for any help,
Tom
logreg1<-vector("list", length(l))
logreg.anov1<-vector("list",length(l))
logreg.summ1<-vector("list",length(l))
logreg.conf1<-vector("list",length(l))
for (i in c(13:16)){
logreg1[[i-x]]<-glm(dat[,i]~group + age, family=binomial, data=Ndat)
logr...
2010 Feb 18
1
logistic regression - what is being predicted when using predict - probabilities or odds?
Dear gurus,
I've analyzed a (fake) data set ("data") using logistic regression (glm):
logreg1 <- glm(z ~ x1 + x2 + y, data=data, family=binomial("logit"),
na.action=na.pass)
Then, I created a data frame with 2 fixed levels (0 and 1) for each predictor:
attach(data)
x1<-c(0,1)
x2<-c(0,1)
y<-c(0,1)
newdata1<-data.frame(expand.grid(x1,x2,y))
names(newdata1)<-c(&qu...