Two regularly-consumed or one regularly-consumed and one episodically-consumed foods or nutrients

Programs and related files for examples on this page

 Download InfographicDownload files
(ZIP, 14.5 MB)

Macros

  • NLMIXED UNIVARIATE
  • NLMIXED BIVARIATE
  • PREDICT_INTAKE_DENSITY

Procedure

First, call the NLMIXED_UNIVARIATE macro twice (once for each variable) to get starting estimates for subsequent NLMIXED_BIVARIATE calls.

Because replication methods (bootstrap or BRR) are used to estimate standard errors of calculated statistics, the following tasks must be performed repeatedly – once for the original data set (or using the base sampling weight variable) to obtain point estimates and again for each resampled data set (or using each of the bootstrap/BRR weight variables in turn):

  1. Use the NLMIXED_BIVARIATE macro to fit the measurement error model and store parameter estimates, then
     
  2. Use the parameter estimates as input to two calls (one for each variable) of the PREDICT_INTAKE_DENSITY macro to compute the conditional expectation of usual intakes of each individual given their 24HR responses, then
     
  3. Fit an appropriate health outcome-exposure model, using the conditional expectations as the dietary exposures

After calculating desired statistics for all data sets/sampling weights, use the appropriate bootstrap/BRR algorithms to estimate standard errors for the coefficients in the health outcome–exposure model by taking the square root of the (adjusted, if BRR) variance across replicates.

Notes

  • The conditional expectations produced by PREDICT_INTAKE_DENSITY are not true intakes for a particular individual. The computations involve averaging over an assumed (i.e., not observable) distribution of individual effects. Two individuals may have very different true usual intakes, yet report the same on multiple 24HRs. Their corresponding output from the PREDICT_INTAKE_DENSITY macro would be the same. Thus, categorizing the two individuals based on their PREDICT_INTAKE_DENSITY output would be subject to potentially extreme misclassification. However, under the assumptions required of the regression calibration method, using the output from PREDICT_INTAKE_DENSITY yields measurement-error-corrected estimates of the regression slopes in a health outcome-exposure model.
     
  • Using resampling methods to calculate standard errors of the coefficients for exposures in the health outcome-exposure model properly accounts for variability in all stages of the estimation.
     
  • PREDICT_INTAKE_DENSITY can estimate conditional expectations of (Box-Cox) transformed true intakes, if the health outcome-exposure model is nonlinear in one or both exposures. Second-degree and higher polynomial terms of exposure can be obtained by repeated calls to the PREDICT_INTAKE_DENSITY macro and some algebra.

Example Code

Example

  • bivar_epidemiology_example2a_mle_main24hr.sas - fit univariate measurement error models using MLE with 24HR as main instrument to obtain starting values for the subsequent step
     
  • bivar_epidemiology_example2b_mle_main24hr.sas - fit bivariate measurement error model using MLE with 24HR as main instrument
     
  • bivar_epidemiology_example2c_mle_main24hr.sas – calculate conditional expectations and fit logistic model to assess the relationships between two dietary components and a health outcome
     
  • bivar_epidemiology_example2d_mle_main24hr.sas - perform bootstrap variance estimation