-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2_prepare_TEST.ado
29 lines (22 loc) · 983 Bytes
/
2_prepare_TEST.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 testicle 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_TEST
program prepare_TEST
args bool_stage data_path results_data_path disease
capture drop *
*----------------------------*
***** SELECTION CRITERIA *****
*----------------------------*
/* open selected patients */ use "`data_path'\\patient_data.dta", clear
/* keep TEST */ quietly keep if tumsoort==703310 | tumsoort==703320
/* compress */ quietly compress
save "`results_data_path'\\`disease'_descriptives_`bool_stage'.dta", replace
end