-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.