Greetings,
I have a longitudinal administrative health dataset consisting of over 400,000 observations. Patients are represented by an alpha numeric identification number and have between 1 and 7000+ administrative claims. I would like to identify all patient identification numbers that received the same treatment across all observations. I have generated a variable that identifies the treatment of interest as 1 for each observation, but I have not been able to figure out how to identify Patients who received the treatment across all observation.
Here is an example dataset to help illustrate my problem:
ID TRT
a1 1
a1 0
a1 1
a2 1
a3 1
a3 1
a4 1
a4 1
a4 1
a5 0
a5 0
In the example provided ID# a2-a4 received the same treatment.
Thanks in advance.
Robert
Related Posts with Longitudinal administrative health data - flag claimants who received the same treatment accross all observations
Medical student who needs help?Hi there, I know very little about STATA but I wanted to know how I could create new variables usin…
Fd gmmHi, I am working on a research matter where i want to use First Difference GMM. My approach is: All…
Setting up variables for a Venn DiagramHi- trying to set up variables for a Venn Diagram; essentially I need a count across three categorie…
Help with Double filter instrumental variable estimation of unblanced, dynamic data panels with xtdpdgmmDear all, I am trying to estimate some unbalanced,dynamic panels using macroeconomic data at country…
Interpretation Robustness Check tableHi there, we conducted our robustness check using "checkrob" command. As a result we got the follow…
Subscribe to:
Post Comments (Atom)
0 Response to Longitudinal administrative health data - flag claimants who received the same treatment accross all observations
Post a Comment