search for: tableofoddsratios_outcome

Displaying 1 result from an estimated 1 matches for "tableofoddsratios_outcome".

2012 Oct 18
1
Getting a table of coefficients from R
...ly(varlist, function(x) {glm(substitute(outcome ~ i, list(i=as.name(x))), data=datafile, family = "binomial")}) # apply summary to each model stored in the list, models lapply(models, summary) tableofOddsRatios<-exp(cbind(OR = coef(models), confint(models))) write.table(table, "tableofOddsRatios_outcome.txt", sep="\t", row.names=T, col.names=T, quote=F) When I try to run this, I get the following error message: > tableofOddsRatios<-exp(cbind(OR = coef(models), confint(models))) Error in UseMethod("vcov") :? ? no applicable method for 'vcov' applied to an obj...