Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
viyaasan committed Sep 4, 2024
1 parent 08400aa commit 694d517
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
7 changes: 4 additions & 3 deletions analysis/hrg2.do
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,16 @@ local `hrg'_count_`i' = round(r(N),5)
qui su total_`hrg'_admissions if ckd_group==`i'
local `hrg'_admissions_`i' = r(mean)
if ``hrg'_count_`i'' >5 & ``hrg'_count_`i''!=. {
file write tablecontent _tab (``hrg'_count_`i'') _tab (``hrg'_admissions_`i'') _tab (``hrg'_days_`i'')
file write tablecontent _tab (``hrg'_count_`i'') _tab (``hrg'_admissions_`i'')
}
else {
file write tablecontent _tab ("REDACTED") _tab ("REDACTED") _tab ("REDACTED")
file write tablecontent _tab ("REDACTED") _tab ("REDACTED")
}
}
file write tablecontent _n
drop total_`hrg'_admissions
drop `hrg'_count
file write tablecontent _n
}


file close tablecontent
8 changes: 3 additions & 5 deletions analysis/hrg3.do
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,16 @@ forvalues i=1/5 {
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 {
local `hrg'_admissions_`i' = r(mean)
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
8 changes: 3 additions & 5 deletions analysis/hrg4.do
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,16 @@ forvalues i=1/5 {
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 {
local `hrg'_admissions_`i' = r(mean)
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 694d517

Please sign in to comment.