Displaying 1 result from an estimated 1 matches for "represeting".
Did you mean:
representing
2012 Feb 27
1
Need advice on GLM
Dear all, I was trying to fit a GLM on the following data (this data was
taken from Agresti):
Dat <- matrix(c(24, 1355, 35, 603, 21, 192, 30, 224), 4, byrow = TRUE)
Here the 1st column denotes the success and the second column is for
failure. We have 4 rows represeting the 4 states of some explanatory
variable, let say those states are:
Scores <- c(0, 2, 4, 5)
My goal is to estimate the success probabilities for each state. Therefore,
I use a simple GLM:
p(x) = alpha + beta * x
*** My first approach
Here I break my sample into sample from Bernoulli dist...