Dear all,
Patient number is a key identifier variable. For example Patients have come for 3 visits, here I want a code to see how many patients have attended all the 3 visits. Hence, I need to generate a new variable with a total number of visits each patient has visited. Also, the dataset is in long format. please see attached example of the query. Thank you
Related Posts with To generate a new variable to subset a dataset based off number of visit a patient has attended
Create a new indicatorHello everyone, I have this 30 year panel data with he name and identifier of executives. I also ha…
select pairs of cases with a distance between them <18 monthsHello everyone, please, I need to create a variable that selects pairs of cases that between their M…
select pairs of cases with a distance between them <18 monthsHi everyone. I need to select the MRIs that are less than 18 months apart. Thank you very much ---…
date and timeHi! I have panel data with different locations that takes the values 1 - 9 indicating a spesific lo…
Problem with data managingHi, this is my first time posting here. My data has a problem. When importing my data, some lines ha…
Subscribe to:
Post Comments (Atom)
0 Response to To generate a new variable to subset a dataset based off number of visit a patient has attended
Post a Comment