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
Calculating rate and confidence interval for a series of data.Hello all I am doing some time series stuff (using R to do interrupted time series analysis - long …
Simple table export question: loop or by function?Hi everyone I am currently working on a monitoring and evaluation program where I need to create a …
Treatment covariate interactionsHi, I'm running a model in which I have a two-arm treatment and a covariate interaction. The model …
Add string to empty cellHi all, I need add string (N/A) to empty cells for a string Variable, I used "subinstr", but lament…
Creating a more efficient loop for generating multiple datasetsHello Statalist, I am in the process of creating 718 different data files based off of one master d…
Subscribe to:
Post Comments (Atom)
0 Response to Bysort Qualifying Parts
Post a Comment