Reputation: 23
I'm running logistic regression in R and all the variables are significant, so I would like to find out the effect size of each variable. How I'm doing this on R?
Upvotes: 2
Views: 3452
Reputation: 303
One way of doing this is via caret package:
data(anorexia, package = "MASS")
reg <- glm(Postwt ~ Prewt + Treat + offset(Prewt),
family = gaussian, data = anorexia)
library(caret)
varImp(reg)
Upvotes: 1