Skip to content

Commit

Permalink
Removed hrg count varaible
Browse files Browse the repository at this point in the history
  • Loading branch information
viyaasan committed Sep 5, 2024
1 parent 42f794d commit 066c238
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6,247 deletions.
5 changes: 2 additions & 3 deletions analysis/hrg1.do
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ global hrg "aa22 aa23 aa24 aa25 aa26 aa28 aa29 aa30 aa31 aa32 aa33 aa35 aa43 aa5
foreach hrg of global hrg {
file write tablecontent ("`hrg'")
bysort ckd_group: egen total_`hrg'_admissions = total(`hrg'_admissions)
drop `hrg'_admissions
forvalues i=1/5 {
qui safecount if ckd_group==`i' & `hrg'_count==1
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 All @@ -127,8 +126,8 @@ else {
file write tablecontent _tab ("REDACTED") _tab ("REDACTED")
}
}
drop `hrg'_admissions
drop total_`hrg'_admissions
drop `hrg'_count
file write tablecontent _n
}

Expand Down
Loading

0 comments on commit 066c238

Please sign in to comment.