Displaying 1 result from an estimated 1 matches for "var_0".
Did you mean:
var_t
2008 Apr 15
1
glm syntax question
...o be
able to do two things:
(1) I need to be able to have my list of variables in the regression
be based from a variable vector instead of hard code.
(2) I need to be able to collect the significant variables from the
output of the regression in a vector.
As example code consider:
out <- glm(Var_0~Var_1+Var_2, family=binomial(link=logit),
data=MyData)
and if I then execute summary(out) I get a summary of the output
including a table
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -2.92995 0.08731 -33.558 < 2e-16 ***
Var_1 1.39244 0.10979 12.683...