Using Stata 14.1 MP 32/64 under Windows. I'm considering this model: http://www.people.fas.harvard.edu/~k...irth/firth.pdf. The main idea is to bias correct the estimates by splitting each of the original observations into two new observations, one taking the value yhij and the other 1-yhij with weights 1+qhij/2 and qhij/2, respectively (see equation for q below). The article says it's easily implemented in any survey software, but I'm having trouble seeing how to do this using standard procedures in Stata. Not everything is in the draft so I'm going to try to provide some equations via images. Here are the relevant pieces:


I'm not exactly sure how to implement this using the svy command in Stata. It seems that rather than a constant weight, it is a function of q which changes as the estimation iterates, Is this internal to Stata? If not, how could this be programmed?
I'm not exactly sure how to implement this using the svy command in Stata. It seems that rather than a constant weight, it is a function of q which changes as the estimation iterates, Is this internal to Stata? If not, how could this be programmed?
Comment