Skip to content

Commit

Permalink
Amended hrg do files
Browse files Browse the repository at this point in the history
  • Loading branch information
viyaasan committed Sep 5, 2024
1 parent 59d54e2 commit d8ea642
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analysis/hrg2.do
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ foreach hrg of global hrg {
file write tablecontent ("`hrg'")
bysort ckd_group: egen total_`hrg'_admissions = total(`hrg'_admissions)
forvalues i=1/5 {
qui safecount if ckd_group==`i' & `hrg'_admissions!=0
qui safecount if ckd_group==`i' & `hrg'_admissions>0
local `hrg'_count_`i' = round(r(N),5)
qui su total_`hrg'_admissions if ckd_group==`i'
local `hrg'_admissions_`i' = r(mean)
Expand Down
2 changes: 1 addition & 1 deletion analysis/hrg3.do
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ foreach hrg of global hrg {
file write tablecontent ("`hrg'")
bysort ckd_group: egen total_`hrg'_admissions = total(`hrg'_admissions)
forvalues i=1/5 {
qui safecount if ckd_group==`i' & `hrg'_admissions!=0
qui safecount if ckd_group==`i' & `hrg'_admissions>0
local `hrg'_count_`i' = round(r(N),5)
qui su total_`hrg'_admissions if ckd_group==`i'
local `hrg'_admissions_`i' = r(mean)
Expand Down
2 changes: 1 addition & 1 deletion analysis/hrg4.do
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ foreach hrg of global hrg {
file write tablecontent ("`hrg'")
bysort ckd_group: egen total_`hrg'_admissions = total(`hrg'_admissions)
forvalues i=1/5 {
qui safecount if ckd_group==`i' & `hrg'_admissions!=0
qui safecount if ckd_group==`i' & `hrg'_admissions>0
local `hrg'_count_`i' = round(r(N),5)
qui su total_`hrg'_admissions if ckd_group==`i'
local `hrg'_admissions_`i' = r(mean)
Expand Down

0 comments on commit d8ea642

Please sign in to comment.