Here, we post the corrected code for our article “Anti-Gay Prejudice and All-Cause Mortality among Heterosexuals in the United States." This code corrects two errors that we discovered in our original paper. See our correction published in AJPH, which describes the errors and reports the updated results. The data preparation was done in SAS and the imputation and models were coded in R. Both SAS and R code were copy and pasted into the attached Word document.
Unfortunately, I can't find the code attached to your post. Could you please try reposting the code, or email it to me? I'm trying to run a survival analysis using the GSS-NDI, and am getting some unexpected results; seeing how you coded survival time would be really helpful. Thanks so much for your time, and for making this resource available.
Jerzy Eisenberg-Guyot PhD Student, Department of Epidemiology University of Washington firstname.lastname@example.org