While I have a fair understanding of basic Stata and logit regressions, I have a quasi-separation issue. After researching the Internet including Statlist, I find some help information but need help in understanding how to operationalize the information.
First question:
In a response to a 14 March 2017 post on "Receiver operating curve after firthlogit command" stating "After I perform penalized maximum likelihood logistic regression with firthlogit, what is the easiest way to get the ROC for the model?
(lroc command will not work)"
Joseph Coveney responded:
Code:
firthlogit response c.predictor
predict double xb, xb
roctab response xb
When using lroc, it is place immediate after the regression code on a separate line. For example:
logit x y1 y2 y3
lroc
If someone could help me understand how to operationalize Joseph Coveney's code, it would be appreciated.
Second question:
For pseudo R2, I understand Stata uses McFadden's R2. For logit, I can recalculate the Stata result which is 1 - [log likelihood(full model) / log likelihood(intercept only model)]. Firthlogit generates a log likelihood(full model) but does not generate a log likelihood(intercept only model). Possible approach are use a regular logit log likelihood(intercept only model) or to use a firthlogit partial model with dependent and test variable. My feel is the regular logit log likelihood(intercept only model) is the most appropriate approach. Would appreciate any guidance offered.
First question:
In a response to a 14 March 2017 post on "Receiver operating curve after firthlogit command" stating "After I perform penalized maximum likelihood logistic regression with firthlogit, what is the easiest way to get the ROC for the model?
(lroc command will not work)"
Joseph Coveney responded:
Code:
firthlogit response c.predictor
predict double xb, xb
roctab response xb
When using lroc, it is place immediate after the regression code on a separate line. For example:
logit x y1 y2 y3
lroc
If someone could help me understand how to operationalize Joseph Coveney's code, it would be appreciated.
Second question:
For pseudo R2, I understand Stata uses McFadden's R2. For logit, I can recalculate the Stata result which is 1 - [log likelihood(full model) / log likelihood(intercept only model)]. Firthlogit generates a log likelihood(full model) but does not generate a log likelihood(intercept only model). Possible approach are use a regular logit log likelihood(intercept only model) or to use a firthlogit partial model with dependent and test variable. My feel is the regular logit log likelihood(intercept only model) is the most appropriate approach. Would appreciate any guidance offered.
Comment