Dear all,
I am trying to study the effects of cumulative exposure to cardiovascular risk factors in several cardiovascular magnetic resonance values.
To sum up, I have a cohort with a 4-year follow-up with three assessments (baseline, year 2 and year 4) and the cardiovascular magnetic resonance (CMR) was done in the last follow-up (year 4).
I want to study the effects of cumulative exposure to different risk factors, which are continuous variables (as systolic blood pressure, blood cholesterol, etc...) that were measured in the three follow-ups (0, 2 and 4), in the CMR parameters (which are also continous variables, but only measured in the last follow-up).
I have checked different studies and this forum and I have seen that it is interesting to obtain the area under curve (AUC) of the risk factors in these circumstances. I found different ways to do this:
- In a previous discussion in this forum (incremental area under the curve - Statalist) Clyde Schechter recommended to use the following code to obtain the AUC of several blood glucose assessments:
// TO CALCULATE COMPLETE GLUCOSE AUC integ glucose time, by(id) gen(total_auc) by id (time), sort: replace total_auc = total_auc[_N] But this case was slightly different (the measurements were taken with 30-minute differences between them). - However, I have checked different papers (the most interesting is this one: DOI: 10.1002/sim.1921, link: Using the area under the curve to reduce measurement error in predicting young adult blood pressure from childhood measures - Cook - 2004 - Statistics in Medicine - Wiley Online Library (csinet.es)) In this paper, they used mixed models to predict a curve, and after that they calculated the AUC. What do you think it is the more correct way of doing this with my database? I feel that using mixed models would be better because it would allow me to estimate also missing values, while doing directly the integral would be less accurate. What is the code in Stata to do this with mixed models? Thank you very much in advance. All the help will be much appreciated
I am trying to study the effects of cumulative exposure to cardiovascular risk factors in several cardiovascular magnetic resonance values.
To sum up, I have a cohort with a 4-year follow-up with three assessments (baseline, year 2 and year 4) and the cardiovascular magnetic resonance (CMR) was done in the last follow-up (year 4).
I want to study the effects of cumulative exposure to different risk factors, which are continuous variables (as systolic blood pressure, blood cholesterol, etc...) that were measured in the three follow-ups (0, 2 and 4), in the CMR parameters (which are also continous variables, but only measured in the last follow-up).
I have checked different studies and this forum and I have seen that it is interesting to obtain the area under curve (AUC) of the risk factors in these circumstances. I found different ways to do this:
- In a previous discussion in this forum (incremental area under the curve - Statalist) Clyde Schechter recommended to use the following code to obtain the AUC of several blood glucose assessments:
// TO CALCULATE COMPLETE GLUCOSE AUC integ glucose time, by(id) gen(total_auc) by id (time), sort: replace total_auc = total_auc[_N] But this case was slightly different (the measurements were taken with 30-minute differences between them). - However, I have checked different papers (the most interesting is this one: DOI: 10.1002/sim.1921, link: Using the area under the curve to reduce measurement error in predicting young adult blood pressure from childhood measures - Cook - 2004 - Statistics in Medicine - Wiley Online Library (csinet.es)) In this paper, they used mixed models to predict a curve, and after that they calculated the AUC. What do you think it is the more correct way of doing this with my database? I feel that using mixed models would be better because it would allow me to estimate also missing values, while doing directly the integral would be less accurate. What is the code in Stata to do this with mixed models? Thank you very much in advance. All the help will be much appreciated
Comment