Displaying 1 result from an estimated 1 matches for "tp3438095p3441476".
2011 Apr 09
2
glm with multiple vars
I am looping through various models with different combinations of
independent variables which are stored as columns in x
glm(y ~ ??, data=x)
How can I pass the colnames of the selected columns of x into ?? seperating
them with a +
ie I want to generate
glm(y ~ x1 + x2, data=x)
glm(y ~ x2 + x3, data=x)
glm(y ~ x1 + x2 + x4, data=x)
...
I have tried the sedit function