Skip to content

Commit

Permalink
Amended random sample process
Browse files Browse the repository at this point in the history
  • Loading branch information
viyaasan committed Aug 29, 2024
1 parent f6d76c1 commit b6d4e29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
8 changes: 8 additions & 0 deletions analysis/ckd.do
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ merge 1:1 patient_id using ./output/input_`dataset'
keep if _merge==2
drop _merge

***Random sample of 25% of non-CKD population for tariff distribution analysis - should not be run for main analyses
gen random_order = runiform()
sort random_order
safecount
local total_obs = r(N)
local drop_count = ceil(0.75 * `total_obs')
drop in 1/`drop_count'

export delimited using "./output/`dataset'_nockd.csv", replace

log close
22 changes: 0 additions & 22 deletions analysis/nockd_random.do

This file was deleted.

0 comments on commit b6d4e29

Please sign in to comment.