luanzi
11-17-2008, 01:11 AM
Question is: There are two lists of data, Y and X. Y is either 1 or 0, and X can be any number. And I have a logistic regression of Logit=B1*X, where B1 is the coefficient of X, and Logit is the Logit of Prob(Y=1).
Now, the question asks me to plot "Log-Likelihood versus B1". I only know how to get a single value of log-likelihood in R (logLik function), by passing in the logit regression.
So what exactly does he mean by plotting log-likelihood versus B1, even though my understanding is that log-likelihood is only a value?
Anyone know of any command in R that can do it?
Thanks in advance!
Now, the question asks me to plot "Log-Likelihood versus B1". I only know how to get a single value of log-likelihood in R (logLik function), by passing in the logit regression.
So what exactly does he mean by plotting log-likelihood versus B1, even though my understanding is that log-likelihood is only a value?
Anyone know of any command in R that can do it?
Thanks in advance!