Hello everyone,
I have an enquiry regarding rangejoin. After I matched my cases to controls, I am still unable to get the pairID for the matched cases and controls. As such, I am unable to carry out any further regression analyses. Please help me on how I can get the pairID.
This is my STATA rangejoin command.
preserve
keep if faller_yn == 0
tempfile controls
save `controls'
restore
keep if faller_yn == 1
rangejoin ageofpatient -5 5 using `controls', by( gender )
set seed 1234
gen double shuffle = runiform()
by patientid (shuffle), sort: keep if _n <= 10
drop shuffle
What further commands do I need to get my pairID.
Any help is appreciated
I have an enquiry regarding rangejoin. After I matched my cases to controls, I am still unable to get the pairID for the matched cases and controls. As such, I am unable to carry out any further regression analyses. Please help me on how I can get the pairID.
This is my STATA rangejoin command.
preserve
keep if faller_yn == 0
tempfile controls
save `controls'
restore
keep if faller_yn == 1
rangejoin ageofpatient -5 5 using `controls', by( gender )
set seed 1234
gen double shuffle = runiform()
by patientid (shuffle), sort: keep if _n <= 10
drop shuffle
What further commands do I need to get my pairID.
Any help is appreciated
Comment