Displaying 1 result from an estimated 1 matches for "modeloutput".
Did you mean:
mode_output
2013 Jan 17
0
help with error: DV "converted to a factor"
...toString(IVcat[k]) ]]<-relevel(dataset[[ toString(IVcat[k])
]],ref=toString(refM[j,k]))
}
#Run model with new reference values from row j
model<-paste(paste(DV[1],"~1",sep=""),paste(IV,collapse="+"),paste(int,collapse="+"),sep="+")
modeloutput<-glm(model,family=binomial(logit),data=dataset)
#assigning all output from every possible combo of ref values to a single
matrix named coeffM
if(j==1){coeffM<-coef(summary(modeloutput))}
if(j>1){coeffM<-rbind(coeffM,coef(summary(modeloutput)))}
}
*I tested each step of the c...