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
Combining multiple Excel files with <xls2dta> commandI am using the xls2dta command to combine multiple Excel files, which seems like a nifty, parsimonio…
lnGSDP (the squared values of the variable GSDP) dropped due to collinearity. What to do to avoid this situationxtabond2 lnSWG lnGSDP lnGSDP_SQ SWG_L1 Health_Exp TotExp_ULB Urban_rate lnPopdens Pol_Stability HDI …
New package srslogit on SSCThanks as always to Kit Baum, a new package srslogit is now available for download from SSC. In Stat…
Coefplot: Line PlotHi, After regressing w1 .......w30 individually on a set of variables x, y, and z. I want to plot th…
How to perform multiple interpolation for missing values Code: * Example generated by - dataex-. For more info, type help dataex clear input float(a b c d g…
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