On Aug 19, 2011, at 8:43 PM, Andra Isan wrote:
Hello All,
I have a question about glm in R. I would like to fit a model with
glm function, I have a vector y (size n) which is my response
variable and I have matrix X which is by size (n*f) where f is the
number of features or columns. I ha
convert your matrix to a data frame:
df <- as.data.frame(mymatrix)
then you can simplify your formula and specify where the data is coming from:
glm.fit <- glm(y~., data=df)
the "." in the formula means all columns in your dataframe (except
"y", if it is in df)
On Sat, Aug 20, 2011 at 10:43 A
Hello All,
I have a question about glm in R. I would like to fit a model with glm
function, I have a vector y (size n) which is my response variable and I have
matrix X which is by size (n*f) where f is the number of features or columns. I
have about 80 features, and when I fit a model using the
3 matches
Mail list logo