Hello all,
I used the firthlogit package with Stata to run a logistic regression on a small dataset (52 observations). I tried to calculate deviance residuals to create a residuals plot, but was unsuccessful. Is it possible to calculate deviate residuals with firthlogit? If yes, can you share how to do this? Any assistance you can provide would be much appreciated.
Here is what I did with a glm model, which worked:
glm Outcome i.LitRev i.DayWkF i.Repeat i.LRsm i.BeforeN, family(binomial) link(logit) lnoffset(YrSem)
predict y4
predict dr04, standardized deviance
twoway scatter dr04 y4, yline(0) || lowess dr04 y4
I would like to do the same with the following firthlogit model:
constraint define 1 ln_YrSem=1
firthlogit Outcome i.LitRev i.DayWkF i.Repeat i.LRsm i.BeforeN ln_YrSem, constraint(1)
Many thanks,
Giovanna
I used the firthlogit package with Stata to run a logistic regression on a small dataset (52 observations). I tried to calculate deviance residuals to create a residuals plot, but was unsuccessful. Is it possible to calculate deviate residuals with firthlogit? If yes, can you share how to do this? Any assistance you can provide would be much appreciated.
Here is what I did with a glm model, which worked:
glm Outcome i.LitRev i.DayWkF i.Repeat i.LRsm i.BeforeN, family(binomial) link(logit) lnoffset(YrSem)
predict y4
predict dr04, standardized deviance
twoway scatter dr04 y4, yline(0) || lowess dr04 y4
I would like to do the same with the following firthlogit model:
constraint define 1 ln_YrSem=1
firthlogit Outcome i.LitRev i.DayWkF i.Repeat i.LRsm i.BeforeN ln_YrSem, constraint(1)
Many thanks,
Giovanna

Comment