Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rtol authored Sep 14, 2023
1 parent ef0f6ab commit f33f2a5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions nobelsurv.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import excel "C:\Users\rtol\My Drive\Papers\Nobel\NobelCandSurv.xlsx", sheet("survival") cellrange(A1:N670) firstrow

use "C:\Users\rtol\My Drive\Papers\Nobel\nobelsurv.dta"

stset end, failure(won) origin(time start)

stcox female indist outdist crossdist, nohr exactp
est store cox1

cd "C:\Users\rtol\My Drive\Papers\Nobel"

esttab cox using survtable.tex, replace label title(Probability of winning the Nobel Prize.\label{tab:results}) nonumbers mtitles("Coefficient" "Hazard ratio") keep(female indist outdist crossdist)

use "C:\Users\rtol\My Drive\Papers\Nobel\nobelcandnew.dta"

logit won female indist outdist crossdist i.id
est store log

probit won female indist outdist crossdist i.id
est store pro

esttab cox log pro using survtable.tex, replace label title(Probability of winning the Nobel Prize.\label{tab:results}) nonumbers mtitles("Cox" "Logit" "Probit") keep(female indist outdist crossdist)
Binary file added nobelsurv.dta
Binary file not shown.

0 comments on commit f33f2a5

Please sign in to comment.