Skip to content

Commit

Permalink
Update hrg2.do
Browse files Browse the repository at this point in the history
  • Loading branch information
viyaasan committed Sep 4, 2024
1 parent 168ebf9 commit 0b79713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysis/hrg2.do
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ 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 `hrg'_admissions_`i' = r(mean)
forvalues i=1/5 {
if ``hrg'_count_`i'' >5 & ``hrg'_count_`i''!=. {
file write tablecontent _tab (``hrg'_count_`i'') _tab (``hrg'_admissions_`i'') _tab (``hrg'_days_`i'')
}
else {
file write tablecontent _tab ("REDACTED") _tab ("REDACTED") _tab ("REDACTED")
}
}
file write tablecontent _n
drop total_`hrg'_admissions
drop `hrg'_count
Expand Down

0 comments on commit 0b79713

Please sign in to comment.