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
Standardizing an interaction termI would like to enter an interaction term into my regression using standardized variables. I am gene…
Question about xtdpdsys: Using Sargan test with T=3 wavesHello, Long time reader, first-time poster. My co-author and I are using xtdpdsys with balanced pa…
predicted survival with stcurveI am fitting a conditional risk model which is usually stratified by order of event and can't produc…
Manually created interaction term and ## commandHi, this is my first time using Stata. I would like to include an interaction term in my model: Co…
Understanding ATET in Stata teffects with multivalued treatmentThere is something in https://www.stata.com/manuals13/tete...ultivalued.pdf that I simply don't foll…
Subscribe to:
Post Comments (Atom)
0 Response to Bysort Qualifying Parts
Post a Comment