Skip to content

Commit

Permalink
Update 305_cox_ph.do
Browse files Browse the repository at this point in the history
  • Loading branch information
rc16 committed May 16, 2023
1 parent a0c19fa commit 8e76b40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analysis/305_cox_ph.do
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ foreach period in pre pandemic /*wave1 easing1 wave2 easing2 wave3 easing3*/ {

stset `outcome'_end, fail(`outcome'_admit) id(patient_id) enter(index_date) origin(index_date)
* Kaplan-Meier plot
*sts graph, by(eth5) ylabel(.99(0.01)1) title("`period'") graphregion(fcolor(white))
*graph export ./output/graphs/km_`outcome'_`period'.svg, as(svg) replace
sts graph, by(eth5) ylabel(.99(0.01)1) title("`period'") graphregion(fcolor(white))
graph export ./output/graphs/km_`outcome'_`period'.svg, as(svg) replace
*stcox eth5, strata(stp)
*estat phtest
stcox eth5 i.age_cat i.male, strata(stp) nolog
Expand Down Expand Up @@ -100,8 +100,8 @@ foreach period in pre pandemic wave1 easing1 wave2 easing2 wave3 easing3 {

stset t1dm_end, fail(t1dm_admit) id(patient_id) enter(index_date) origin(index_date)
* Kaplan-Meier plot
sts graph, by(eth5) ylabel(.80(.05)1) title("`period'") graphregion(fcolor(white))
graph export ./output/graphs/km_t1dm_`period'.svg, as(svg) replace
*sts graph, by(eth5) ylabel(.80(.05)1) title("`period'") graphregion(fcolor(white))
*graph export ./output/graphs/km_t1dm_`period'.svg, as(svg) replace
*qui stcox eth5, strata(stp)
*estat phtest
stcox eth5 i.age_cat i.male, strata(stp) nolog
Expand Down

0 comments on commit 8e76b40

Please sign in to comment.