From 0b79713bcdbd7d990fe1ca8c96fdb57a8945d83b Mon Sep 17 00:00:00 2001 From: Viyaasan Mahalingasivam Date: Wed, 4 Sep 2024 11:25:45 +0100 Subject: [PATCH] Update hrg2.do --- analysis/hrg2.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/hrg2.do b/analysis/hrg2.do index a89e128..913dec3 100644 --- a/analysis/hrg2.do +++ b/analysis/hrg2.do @@ -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