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
Using Local in a LoopHello everyone, I'm having a problem commanding a local to do a function. The idea of the whole loo…
Beginner's question on datasetI have data on online competitions that are held weekly. I have data from 2001 all the way up to 201…
Marginplot and Khb graphDear statalists, It is my first post on this forum, so i hope that i won't wrong section or formulat…
Standard DeviationIn my panel data, There are 20 individuals and 32-time points. Within the data set, the "Exchange ra…
Beginner question, loop command for net returns, error code r(198) "`var' invalid name"Hi everyone, I have a time series set of monthly currency spot rates from multiple countries. I als…
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