Hi, R users,

I am trying to use glm to do logistic regression. I know generally when I
have two covariates, say x1 and x2, then I do
fit <- glm(y~x1+x2,famliy='binomial')
But now my covariates form a n*p matrix, say x, so actually each column is a
covariate. So I think I should do
fit <- glm(y~x,family='binomial')
Then I need to predict new data. How should I write the newdata? I tried
several thing, all failed. The x in the fit is a matrix, but is a vector for
the new data.

Thank you,
Annie

	[[alternative HTML version deleted]]


