I’m trying to find which qualifying part was treated after the first visit for the 2nd and 3rd visit but have hundreds of entries. I have tried encoding the parts and using bysort to try and solve this but unsure how to keep it per person per visit…
For each person (id 301, 302, 303, etc), each visit (1 2 3), a list of problems (1-4) by body part (by system) were given. Out of these body parts, the qualifying part (q_part) was treated at the first visit. There can be more than 1 qualifying part per visit and qualifying parts can skip a visit.
Array
Related Posts with Bysort Qualifying Parts
Difference-in-difference with multiple treatments and multiple time periodsDear Statalisters, I have job level data and I am trying to estimate the impact of US state labor r…
Panel data regression with high coefficients valuesDear All I have estimated a panel regression with command ' xtreg, fe cluster(id)'. (22 panels and …
STATA commands for PSTR modelHi Team Can STATA 14 run PSTR model? If it does can someone assist with the commands please. …
New packages cprdhesaeutil and cprdhesoputil on SSCThanks once again to Kit Baum, two new packages cprdhesaeutil and cprdhesoputil are now available fo…
New versions of cprdonsutil and cprdhesutil on SSCThanks as always to Kit Baum, new versions of the cprdonsutil and cprdhesutil packages are now avail…
Subscribe to:
Post Comments (Atom)
0 Response to Bysort Qualifying Parts
Post a Comment