liud4 / rVMAP

Data Management code for VMAC-MAP study
Other
3 stars 0 forks source link

derive cdr.ever.factor and afib.ever.factor variables #53

Closed liud4 closed 2 years ago

liud4 commented 2 years ago

For each epoch, this variable should be derived as cvd.ever.factor="Yes" if the current or previous epoch has cvd.factor="Yes". In addition, we can check whether cvd.factor variable is monotonically coded. That is to say, if epoch 1 cvd.factor="Yes", then all the subsequent epoch shold have cvd.factor="Yes".