The data matrix PCGMat (output of the MATLAB program genPCGdata.m,
which saves the data as PCGdata.mat) consist of group data, i.e. each
patient is assigned in each year to one primary condition group (PCG)
based on the maximum number of claims. Below, the data matrix DatMat
(output from the MATLAB program datagen.m, which saves the data as
dataset.mat) and contains aggregated claim level data.  The imputed
dataset is named DatMatimp (output from the MATLAB program imput.m, 
which saves the data as datasetimp.mat) and has the same structure as
DatMat.



------------ PCGMat ------------

column    name                        description
1      -  IDMax                     : MemberID     
2      -  maxPCGGroup_Y1            : PCG-ID of the PCG with the maximum number of claims in Year 1
3      -  maxPCGGroup_Y2            : PCG-ID of the PCG with the maximum number of claims in Year 2
4      -  maxPCGGroup_Y3            : PCG-ID of the PCG with the maximum number of claims in Year 3


----- DatMat & DatMatimp -------

column    name                        description                                                                                                          
1      -  IDMax                     : MemberID                                                                                                             
2      -  IDTarget                  : 1 if Patient is in Target-Table                                                                                      
3      -  ProvidMax1                : max LoS over all patient's provider in Year 1 (ProviderL)                                                            
4      -  ProvidMax2                : max LoS over all patient's provider in Year 2 (ProviderL)                                                            
5      -  ProvidMax3                : max LoS over all patient's  provider in Year 3 (ProviderL)                                                           
6      -  ProvidMean1               : mean LoS over all patient's  provider in Year 1 (ProviderL)                                                          
7      -  ProvidMean2               : mean LoS over all patient's  provider in Year 2 (ProviderL)                                                          
8      -  ProvidMean3               : mean LoS over all patient's  provider in Year 3 (ProviderL)                                                          
9      -  ProvidgewMean1            : weighted (for the number of claims) mean LoS over all patient's  provider in Year 1 (ProviderL)                      
10     -  ProvidgewMean2            : weighted (for the number of claims) mean LoS over all patient's  provider in Year 2 (ProviderL)                      
11     -  ProvidgewMean3            : weighted (for the number of claims) mean LoS over all patient's  provider in Year 3 (ProviderL)                      
12     -  VendorMax1                : max LoS over all patient's  vendors in Year 1 (VendorL)                                                              
13     -  VendorMax2                : max LoS over all patient's  vendors in Year 2 (VendorL)                                                              
14     -  VendorMax3                : max LoS over all patient's  vendors in Year 3 (VendorL)                                                              
15     -  VendorMean1               : mean LoS over all patient's  vendors in Year 1 (VendorL)                                                             
16     -  VendorMean2               : mean LoS over all patient's  vendors in Year 2 (VendorL)                                                             
17     -  VendorMean3               : mean LoS over all patient's  vendors in Year 3 (VendorL)                                                             
18     -  VendorgewMean1            : weighted (for the number of claims) mean LoS over all patient's  vendors in Year 1 (VendorL)                         
19     -  VendorgewMean2            : weighted (for the number of claims) mean LoS over all patient's  vendors in Year 2 (VendorL)                         
20     -  VendorgewMean3            : weighted (for the number of claims) mean LoS over all patient's  vendors in Year 3 (VendorL)                         
21     -  PCPMax1                   : max LoS over all patient's  PCPs in Year 1 (PCPL)                                                                    
22     -  PCPMax2                   : max LoS over all patient's  PCPs in Year 2 (PCPL)                                                                    
23     -  PCPMax3                   : max LoS over all patient's  PCPs in Year 3 (PCPL)                                                                    
24     -  PCPMean1                  : mean LoS over all patient's  PCPs in Year 1 (PCPL)                                                                   
25     -  PCPMean2                  : mean LoS over all patient's  PCPs in Year 2 (PCPL)                                                                   
26     -  PCPMean3                  : mean LoS over all patient's  PCPs in Year 3 (PCPL)                                                                   
27     -  PCPgewMean1               : weighted (for the number of claims) mean LoS over all patient's  PCPs in Year 1 (PCPL)                               
28     -  PCPgewMean2               : weighted (for the number of claims) mean LoS over all patient's  PCPs in Year 2 (PCPL)                               
29     -  PCPgewMean3               : weighted (for the number of claims) mean LoS over all patient's  PCPs in Year 3 (PCPL)                               
30     -  PrCondMax1                : max LoS over all patient's  Primary Conditions in Year 1 (PrCondL)                                                   
31     -  PrCondMax2                : max LoS over all patient's  Primary Conditions in Year 2 (PrCondL)                                                   
32     -  PrCondMax3                : max LoS over all patient's  Primary Conditions in Year 3 (PrCondL)                                                   
33     -  PrCondMean1               : mean LoS over all patient's  Primary Conditions in Year 1 (PrCondL)                                                  
34     -  PrCondMean2               : mean LoS over all patient's  Primary Conditions in Year 2 (PrCondL)                                                  
35     -  PrCondMean3               : mean LoS over all patient's  Primary Conditions in Year 3 (PrCondL)                                                  
36     -  PrCondgewMean1            : weighted (for the number of claims) mean LoS over all patient's  Primary Conditions in Year 1 (PrCondL)              
37     -  PrCondgewMean2            : weighted (for the number of claims) mean LoS over all patient's  Primary Conditions in Year 2 (PrCondL)              
38     -  PrCondgewMean3            : weighted (for the number of claims) mean LoS over all patient's  Primary Conditions in Year 3 (PrCondL)              
39     -  ProcedMax1                : max LoS over all patient's  Procedure Groups in Year 1 (ProcedL)                                                     
40     -  ProcedMax2                : max LoS over all patient's  Procedure Groups in Year 2 (ProcedL)                                                     
41     -  ProcedMax3                : max LoS over all patient's  Procedure Groups in Year 3 (ProcedL)                                                     
42     -  ProcedMean1               : mean LoS over all patient's  Procedure Groups in Year 1 (ProcedL)                                                    
43     -  ProcedMean2               : mean LoS over all patient's  Procedure Groups in Year 2 (ProcedL)                                                    
44     -  ProcedMean3               : mean LoS over all patient's  Procedure Groups in Year 3 (ProcedL)                                                    
45     -  ProcedgewMean1            : weighted (for the number of claims) mean LoS over all patient's  Procedure Groups in Year 1 (ProcedL)                
46     -  ProcedgewMean2            : weighted (for the number of claims) mean LoS over all patient's  Procedure Groups in Year 2 (ProcedL)                
47     -  ProcedgewMean3            : weighted (for the number of claims) mean LoS over all patient's  Procedure Groups in Year 3 (ProcedL)                
48     -  Claim1                    : number of claims in Year 1                                                                                           
49     -  Claim2                    : number of claims in Year 2                                                                                           
50     -  Claim3                    : number of claims in Year 3                                                                                           
51     -  Length1                   : mean LoS (over all claims) in Year 1                                                                                 
52     -  Length2                   : mean LoS (over all claims) in Year 2                                                                                 
53     -  Length3                   : mean LoS (over all claims) in Year 3                                                                                 
54     -  LengMax1                  : max LoS (over all claims) in Year 1                                                                                  
55     -  LengMax2                  : max LoS (over all claims) in Year 2                                                                                  
56     -  LengMax3                  : max LoS (over all claims) in Year 3                                                                                  
57     -  LengSum1                  : total LoS (over all claims) in Year 1                                                                                
58     -  LengSum2                  : total LoS (over all claims) in Year 2                                                                                
59     -  LengSum3                  : total LoS (over all claims) in Year 3                                                                                
60     -  Sp_Y1_Anesthesiology      : number of claims in the specialty Anesthesiology in Year 1                                                           
61     -  Sp_Y1_Diagnostic_Imaging  : number of claims in the specialty Diagnostic Imaging in Year 1                                                       
62     -  Sp_Y1_Emergency           : number of claims in the specialty Emergency in Year 1                                                                
63     -  Sp_Y1_General_Practice    : number of claims in the specialty General Practice in Year 1                                                         
64     -  Sp_Y1_Internal            : number of claims in the specialty Internal in Year 1                                                                 
65     -  Sp_Y1_Laboratory          : number of claims in the specialty Laboratory in Year 1                                                               
66     -  Sp_Y1_Obsteric_Gynecology : number of claims in the specialty Obsteric Gynecology in Year 1                                                      
67     -  Sp_Y1_Other               : number of claims in the specialty Other in Year 1                                                                    
68     -  Sp_Y1_Pathology           : number of claims in the specialty Pathology in Year 1                                                                
69     -  Sp_Y1_Pediatrics          : number of claims in the specialty Pediatrics in Year 1                                                               
70     -  Sp_Y1_Rehabilitation      : number of claims in the specialty Rehabilitation in Year 1                                                           
71     -  Sp_Y1_Surgery             : number of claims in the specialty Surgery in Year 1                                                                  
72     -  Sp_Y1_Missing             : number of claims in the specialty Missing in Year 1                                                                  
73     -  Sp_Y2_Anesthesiology      : number of claims in the specialty Anesthesiology in Year 2                                                           
74     -  Sp_Y2_Diagnostic_Imaging  : number of claims in the specialty Diagnostic Imaging in Year 2                                                       
75     -  Sp_Y2_Emergency           : number of claims in the specialty Emergency in Year 2                                                                
76     -  Sp_Y2_General_Practice    : number of claims in the specialty General Practice in Year 2                                                         
77     -  Sp_Y2_Internal            : number of claims in the specialty Internal in Year 2                                                                 
78     -  Sp_Y2_Laboratory          : number of claims in the specialty Laboratory in Year 2                                                               
79     -  Sp_Y2_Obsteric_Gynecology : number of claims in the specialty Obsteric Gynecology in Year 2                                                      
80     -  Sp_Y2_Other               : number of claims in the specialty Other in Year 2                                                                    
81     -  Sp_Y2_Pathology           : number of claims in the specialty Pathology in Year 2                                                                
82     -  Sp_Y2_Pediatrics          : number of claims in the specialty Pediatrics in Year 2                                                               
83     -  Sp_Y2_Rehabilitation      : number of claims in the specialty Rehabilitation in Year 2                                                           
84     -  Sp_Y2_Surgery             : number of claims in the specialty Surgery in Year 2                                                                  
85     -  Sp_Y2_Missing             : number of claims in the specialty Missing in Year 2                                                                  
86     -  Sp_Y3_Anesthesiology      : number of claims in the specialty Anesthesiology in Year 3                                                           
87     -  Sp_Y3_Diagnostic_Imaging  : number of claims in the specialty Diagnostic Imaging in Year 3                                                       
88     -  Sp_Y3_Emergency           : number of claims in the specialty Emergency in Year 3                                                                
89     -  Sp_Y3_General_Practice    : number of claims in the specialty General Practice in Year 3                                                         
90     -  Sp_Y3_Internal            : number of claims in the specialty Internal in Year 3                                                                 
91     -  Sp_Y3_Laboratory          : number of claims in the specialty Laboratory in Year 3                                                               
92     -  Sp_Y3_Obsteric_Gynecology : number of claims in the specialty Obsteric Gynecology in Year 3                                                      
93     -  Sp_Y3_Other               : number of claims in the specialty Other in Year 3                                                                    
94     -  Sp_Y3_Pathology           : number of claims in the specialty Pathology in Year 3                                                                
95     -  Sp_Y3_Pediatrics          : number of claims in the specialty Pediatrics in Year 3                                                               
96     -  Sp_Y3_Rehabilitation      : number of claims in the specialty Rehabilitation in Year 3                                                           
97     -  Sp_Y3_Surgery             : number of claims in the specialty Surgery in Year 3                                                                  
98     -  Sp_Y3_Missing             : number of claims in the specialty Missing in Year 3                                                                  
99     -  Pl_Y1_Ambulance           : number of claims in the place of service Ambulance in Year 1                                                         
100    -  Pl_Y1_Home                : number of claims in the place of service Home in Year 1                                                              
101    -  Pl_Y1_Independent_Lab     : number of claims in the place of service Independent Lab in Year 1                                                   
102    -  Pl_Y1_Inpatient_Hospital  : number of claims in the place of service Inpatient Hospital in Year 1                                                
103    -  Pl_Y1_Office              : number of claims in the place of service Inpatient Office in Year 1                                                  
104    -  Pl_Y1_Other               : number of claims in the place of service Inpatient Other in Year 1                                                   
105    -  Pl_Y1_Outpatient_Hospital : number of claims in the place of service Inpatient Outpatient Hospital in Year 1                                     
106    -  Pl_Y1_Urgent_Care         : number of claims in the place of service Inpatient Urgent Care in Year 1                                             
107    -  Pl_Y1_Miss                : number of claims in the place of service Inpatient Miss in Year 1                                                    
108    -  Pl_Y2_Ambulance           : number of claims in the place of service Ambulance in Year 2                                                         
109    -  Pl_Y2_Home                : number of claims in the place of service Home in Year 2                                                              
110    -  Pl_Y2_Independent_Lab     : number of claims in the place of service Independent Lab in Year 2                                                   
111    -  Pl_Y2_Inpatient_Hospital  : number of claims in the place of service Inpatient Hospital in Year 2                                                
112    -  Pl_Y2_Office              : number of claims in the place of service Inpatient Office in Year 2                                                  
113    -  Pl_Y2_Other               : number of claims in the place of service Inpatient Other in Year 2                                                   
114    -  Pl_Y2_Outpatient_Hospital : number of claims in the place of service Inpatient Outpatient Hospital in Year 2                                     
115    -  Pl_Y2_Urgent_Care         : number of claims in the place of service Inpatient Urgent Care in Year 2                                             
116    -  Pl_Y2_Miss                : number of claims in the place of service Inpatient Miss in Year 2                                                    
117    -  Pl_Y3_Ambulance           : number of claims in the place of service Ambulance in Year 3                                                         
118    -  Pl_Y3_Home                : number of claims in the place of service Home in Year 3                                                              
119    -  Pl_Y3_Independent_Lab     : number of claims in the place of service Independent Lab in Year 3                                                   
120    -  Pl_Y3_Inpatient_Hospital  : number of claims in the place of service Inpatient Hospital in Year 3                                                
121    -  Pl_Y3_Office              : number of claims in the place of service Inpatient Office in Year 3                                                  
122    -  Pl_Y3_Other               : number of claims in the place of service Inpatient Other in Year 3                                                   
123    -  Pl_Y3_Outpatient_Hospital : number of claims in the place of service Inpatient Outpatient Hospital in Year 3                                     
124    -  Pl_Y3_Urgent_Care         : number of claims in the place of service Inpatient Urgent Care in Year 3                                             
125    -  Pl_Y3_Miss                : number of claims in the place of service Inpatient Miss in Year 3                                                    
126    -  PayDelay                  : mean number of days delay between the date of service and date of payment over all claims and Years                  
127    -  PayDelayY1                : mean number of days delay between the date of service and date of payment over all claims in Year 1                  
128    -  PayDelayY2                : mean number of days delay between the date of service and date of payment over all claims in Year 2                  
129    -  PayDelayY3                : mean number of days delay between the date of service and date of payment over all claims in Year 3                  
130    -  Charlson_0                : 1 for each patient whose maximal Charlson-Index (over all claims) is 0 over all Years and zero otherwise             
131    -  Charlson_1                : 1 for each patient whose maximal Charlson-Index (over all claims) is 1-2 over all Years and zero otherwise           
132    -  Charlson_2                : 1 for each patient whose maximal Charlson-Index (over all claims) is 3-4 over all Years and zero otherwise           
133    -  Charlson_3                : 1 for each patient whose maximal Charlson-Index (over all claims) is +5 over all Years and zero otherwise            
134    -  CharlsonY1_0              : 1 for each patient whose maximal Charlson-Index (over all claims) is 0 in Year 1 and zero otherwise                  
135    -  CharlsonY1_1              : 1 for each patient whose maximal Charlson-Index (over all claims) is 1-2 in Year 1 and zero otherwise                
136    -  CharlsonY1_2              : 1 for each patient whose maximal Charlson-Index (over all claims) is 3-4 in Year 1 and zero otherwise                
137    -  CharlsonY1_3              : 1 for each patient whose maximal Charlson-Index (over all claims) is +5 in Year 1 and zero otherwise                 
138    -  CharlsonY2_0              : 1 for each patient whose maximal Charlson-Index (over all claims) is 0 in Year 2 and zero otherwise                  
139    -  CharlsonY2_1              : 1 for each patient whose maximal Charlson-Index (over all claims) is 1-2 in Year 2 and zero otherwise                
140    -  CharlsonY2_2              : 1 for each patient whose maximal Charlson-Index (over all claims) is 3-4 in Year 2 and zero otherwise                
141    -  CharlsonY2_3              : 1 for each patient whose maximal Charlson-Index (over all claims) is +5 in Year 2 and zero otherwise                 
142    -  CharlsonY3_0              : 1 for each patient whose maximal Charlson-Index (over all claims) is 0 in Year 3 and zero otherwise                  
143    -  CharlsonY3_1              : 1 for each patient whose maximal Charlson-Index (over all claims) is 1-2 in Year 3 and zero otherwise                
144    -  CharlsonY3_2              : 1 for each patient whose maximal Charlson-Index (over all claims) is 3-4 in Year 3 and zero otherwise                
145    -  CharlsonY3_3              : 1 for each patient whose maximal Charlson-Index (over all claims) is +5 in Year 3 and zero otherwise                 
146    -  ClaimTrunc_1              : 1 for patients with truncated claims in Year 1 and zero otherwise                                                    
147    -  DaysHosp2                 : Days in Hospital in Year 2                                                                                           
148    -  ClaimTrunc3               : 1 for patients with truncated claims in Year 2 and zero otherwise                                                    
149    -  DaysHosp3                 : Days in Hospital in Year 3                                                                                           
150    -  Drug1                     : sum over all  counts of unique prescription drugs in Year 1                                                          
151    -  Drug2                     : sum over all  counts of unique prescription drugs in Year 2                                                          
152    -  Drug3                     : sum over all  counts of unique prescription drugs in Year 3                                                          
153    -  Lab1                      : sum over all  counts of unique laboratory and pathology tests in Year 1                                              
154    -  Lab2                      : sum over all  counts of unique laboratory and pathology tests in Year 2                                              
155    -  Lab3                      : sum over all  counts of unique laboratory and pathology tests in Year 3                                              
156    -  Age                       : age in years at the time of the first claim???s date of service ; Generalized into ten year age intervals              
157    -  AgeMiss                   : 1 if age is missing and zero otherwise                                                                               
158    -  Sex                       : biological sex of member (1 = Male; 0=Female)                                                                        
159    -  SexMiss                   : 1 if sex is missing and zero otherwise                                                                               
160    -  ClaimTruncT               : 1 for patients with truncated claims in Year 3 and zero otherwise                                                    
