Skip to content

Commit

Permalink
Update hrg1.do
Browse files Browse the repository at this point in the history
  • Loading branch information
viyaasan committed Sep 4, 2024
1 parent 73da2c4 commit 73aa605
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions analysis/hrg1.do
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,15 @@ qui safecount if ckd_group==`i' & `hrg'_count==1
local `hrg'_count_`i' = round(r(N),5)
qui su total_`hrg'_admissions if ckd_group==`i'
local total_`hrg'_admissions_`i' = r(mean)
}
drop total_`hrg'_admissions
drop `hrg'_count
forvalues i=1/5 {
if ``hrg'_count_`i'' >5 & ``hrg'_count_`i''!=. {
file write tablecontent _tab (``hrg'_count_`i'') _tab (``hrg'_admissions_`i'')
}
else {
file write tablecontent _tab ("REDACTED") _tab ("REDACTED")
}
}
drop total_`hrg'_admissions
drop `hrg'_count
file write tablecontent _n
}

Expand Down

0 comments on commit 73aa605

Please sign in to comment.