Displaying 1 result from an estimated 1 matches for "q2data".
Did you mean:
u2data
2009 Feb 14
1
glm problem
Hello,
I have a weird problem here. What I want to do is that I need to draw 1000
samples from a matrix, and use glm on them.
when I used this command, it runs without the problem
> qdata.glm = glm(X258 ~ ., family = binomial, data =
q2data[sample(dim(q2data)[1], 1000), ])
but if I drew the sample first and run glm() on that sample, it gave a
warning.
> qdata.sample = q2data[sample(dim(qdata)[1], 1000), ]
> qdata.glm = glm(X258 ~ ., family = binomial, qdata.sample)
Warning message:
In glm.fit(x = X, y = Y, weights = weights, s...