-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2_prepare_BLAD.ado
33 lines (25 loc) · 1.11 KB
/
2_prepare_BLAD.ado
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
*------------------------------------------------------------------------------*
* This script selects patients with bladder cancer-----------------------------*
*------------------------------------------------------------------------------*
*-------------------------------*
*** Install relevant packages ***
*-------------------------------*
* tell Stata to never pause
set more off, perm
* style of decimal point is a comma
set dp comma, perm
capture program drop prepare_BLAD
program prepare_BLAD
args bool_stage data_path results_data_path disease
capture drop *
*----------------------------*
***** SELECTION CRITERIA *****
*----------------------------*
/* open selected patients */ use "`data_path'\\patient_data.dta", clear
/* keep BLAD */ quietly keep if tumsoort==712310 | tumsoort==712320 | tumsoort==713310 | ///
tumsoort==713330 | tumsoort==713340 | ///
tumsoort==719310 | tumsoort==719330
display _N
/* compress */ quietly compress
save "`results_data_path'\\`disease'_descriptives_`bool_stage'.dta", replace
end