-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2_prepare_CERV.ado
29 lines (22 loc) · 950 Bytes
/
2_prepare_CERV.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
*------------------------------------------------------------------------------*
* This script selects patients with cervical 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_CERV
program prepare_CERV
args bool_stage data_path results_data_path disease
capture drop *
*----------------------------*
***** SELECTION CRITERIA *****
*----------------------------*
/* open selected patients */ use "`data_path'\\patient_data.dta", clear
/* keep CERV */ quietly keep if tumsoort==603300
/* compress */ quietly compress
save "`results_data_path'\\`disease'_descriptives_`bool_stage'.dta", replace
end