Hi, This is my first time posting here, so I appreciate your kindness>
I have a dataset with observations at individual-level, and I want to create a new variable (% of a therapy) at a center-level.
I have the therapy variable as (0-1) and the variable that identifies the center-level I want to aggregate in as a string variable.
Please help, I have tried bysort, egen, count with no satisfactory results.
I have a dataset with observations at individual-level, and I want to create a new variable (% of a therapy) at a center-level.
I have the therapy variable as (0-1) and the variable that identifies the center-level I want to aggregate in as a string variable.
Please help, I have tried bysort, egen, count with no satisfactory results.
Comment