 Research article
 Open Access
 Open Peer Review
 Published:
Identification of confounder in epidemiologic data contaminated by measurement error in covariates
BMC Medical Research Methodology volume 16, Article number: 54 (2016)
Abstract
Background
Common methods for confounder identification such as directed acyclic graphs (DAGs), hypothesis testing, or a 10 % changeinestimate (CIE) criterion for estimated associations may not be applicable due to (a) insufficient knowledge to draw a DAG and (b) when adjustment for a true confounder produces less than 10 % change in observed estimate (e.g. in presence of measurement error).
Methods
We compare previously proposed simulationbased approach for confounder identification that can be tailored to each specific study and contrast it with commonly applied methods (significance criteria with cutoff levels of pvalues of 0.05 or 0.20, and CIE criterion with a cutoff of 10 %), as well as newly proposed twostage procedure aimed at reduction of false positives (specifically, risk factors that are not confounders). The new procedure first evaluates potential for confounding by examination of correlation of covariates and applies simulated CIE criteria only if there is evidence of correlation, while rejecting a covariate as confounder otherwise. These approaches are compared in simulations studies with binary, continuous, and survival outcomes. We illustrate the application of our proposed confounder identification strategy in examining the association of exposure to mercury in relation to depression in the presence of suspected confounding by fish intake using the National Health and Nutrition Examination Survey (NHANES) 2009–2010 data.
Results
Our simulations showed that the simulationdetermined cutoff was very sensitive to measurement error in exposure and potential confounder. The analysis of NHANES data demonstrated that if the noisetosignal ratio (error variance in confounder/variance of confounder) is at or below 0.5, roughly 80 % of the simulated analyses adjusting for fish consumption would correctly result in a null association of mercury and depression, and only an extremely poorly measured confounder is not useful to adjust for in this setting.
Conclusions
No a prior criterion developed for a specific application is guaranteed to be suitable for confounder identification in general. The customization of modelbuilding strategies and study designs through simulations that consider the likely imperfections in the data, as well as finitesample behavior, would constitute an important improvement on some of the currently prevailing practices in confounder identification and evaluation.
Background
In the practice of epidemiology, researchers identify confounders theoretically or empirically. Theoretical identification is generally carried out through use of directed acyclic graphs (DAGs) [1]. While the use of DAGs has many virtues (such as explicit declaration of hypotheses and theoretical analysis that can guide modelbuilding in a manner that increases the possibility of empirically estimating causal association), they are subjective interpretations that reflect an investigator’s belief of how the world works, and does not necessary reflect how the world actually is [2]. As such, relying on theory alone for confounder identification is perilous: if we knew all causal relations of interest and could draw perfect DAGs, then there would be no need to empirically identify the confounders.
We focus specifically on a problem of identification of a true structural confounder present in datageneration process, i.e. a variable that would still be a cofounder if sample size was infinite, from a finite sample situation that can give rise to confounding by chance. Structural confounding is to be contrasted with confounding that arises by chance in finite samples. Such confounding by chance can be due to an association between a variable with an outcome, when such a variable is independent of exposure in population but not a sample. In such situations, it is important to be able to realize that confounding is a quirk of a finite sample, even if “controlling” for covariate in a regression model has measurable impact on exposureoutcome association. In essence, not every variable that has influence on the magnitude of exposureoutcome association in a finite sample is a structural confounder, and vice versa. It is important to correct exposureoutcome association for the peculiarities of the finite sample but one has to be cautious about generalizing that any variable identified in such a manner is a structural confounder rather than and “incidental” confounder. Distinguishing between the two types of confounding is helpful for understanding how factors under study interrelated in the population since it is the valid inferences about the population that drive application of epidemiology to policy. We attempt to address this issue in our work. However, it seems prudent to reiterate before any further analysis that it is sensible to include all know risk factors in any regression analysis of exposureoutcome association in epidemiology in order to guard against confounding by chance: application of DAG methodology can be most helpful in this regard because it allows to codify what is already known about the problem. Conceptually, any model fitted to the data has to reflect our understanding of the phenomena under study and that includes what we know already (factors forced into the model) and what we hope to learn from the data (factors that are tested the model). Thus, we always adjust risk of cancer for age and risk of autism for sex, because to do otherwise amounts to making a statement about datagenerating mechanism that is known to be wrong.
Empirical confounder identification is useful when the true causal relations between the exposure, outcome, and a set of potential confounders are unknown. This is typically carried out with significance criterion, e.g., a pvalue cutoff (≤0.05 and 0.2 are commonly used) for the association between a potential confounder and outcome, or a changeinestimate (CIE) strategy, e.g., a ≥10 % CIE of the effect of exposure between models that do and do not adjust for the potential confounder [3, 4]. Practitioners of these approaches often cite papers by Mickey and Greenland [3] or Maldonado and Greenland [4]. However, even while these authors never advocated CIE practice for all data situations, it is not uncommon to see authors in the literature employing subjective a priori CIE cutoffs in the same manner as they might do with pvalue significance testing, despite evidence that fixed CIE cutoffs result in unacceptable type I and type II error rates in many circumstances [5, 6]. Simulationbased CIE that are customized to each application and are meant to have prespecified type I error rates were recently proposed [5]. The inevitable measurement error in covariates further complicates confounder identification in practice [7] as does latent confounding, the extreme case of missmeasured confounder. The topic of latent confounding has been addressed extensively with excellent proposal for analytical treatment, e.g. see [8, 9] for review.
Accurate knowledge of measurement error magnitude and structure is sometimes lacking in epidemiology. However, in largescale and wellconducted epidemiological studies, researchers have to make use of measurements with known error (obtained in validity and reliability studies) to achieve the required sample size and to reduce participant burden, for example selfreport of dietary intake instead of a blood test [10–13]. The effects of measurement errors in exposures and confounder on the performance of different confounder identification criteria are unknown, although insights exist on bias and variability of estimates in such cases, albeit with closed form solutions currently for linear regression only [14]. When measurement error is not known exactly, researchers may still conduct sensitivity analysis to see how choice of confounder identification strategy may bias the results; we illustrate this in the applied example in this paper. There may be a range of plausible measurement errors magnitudes that has negligible influence on confounder identification strategy. It is also important to know that epidemiologists always have some intuition about the accuracy of their tools and are aware that most are imperfect, otherwise they would not be able plan their work at all.
The primary aim of removing cofounding from the estimate of exposure of interest on the outcome is to obtain unbiased estimate of the degree of exposureoutcome association that can be useful in risk assessment. This is indeed the conceptual foundation of CIE approach that proposed cutoffs on the order of 10 % as these were judged to be reflective of what can be reliably inferred in observational epidemiology given limitations of the data. From this perspective, it also acceptable to force all potential covariates into disease model so long as they are suspected as potential confounders and can be ruled out as factors that should not be adjusted for (e.g. mediators, antecedents of exposure alone, etc.) on the basis of theoretical analysis (e.g. implemented via DAG). This is so because if regressionbased adjustment has negligible effect on estimate of interest, there is equally no harm in the adjustment so long as the model is not overfitted. However, there is also virtue in understanding whether there is evidence that a specific factor is a confounder, e.g. in cases where such a factor is “costly” to assess and one is planning future work on a particular topic and wishes to optimize study protocol. In recognition of importance of accurate estimate of causal effects in epidemiology, rather than hypothesis testing, we also consider influence of different confounderselection strategies on accuracy of the estimate of the exposureoutcome association.
Here, we illustrate a mixed approach for confounder identification utilizing both theoretical and empirical criteria that accounts for the realistic role of measurement error in the exposure and putative confounder, along the lines suggested by Marshall [15]. While using both theoretical and empirical criteria for model selection has been proposed [16], we provide a simulationbased framework that evaluates the performance of various empirical criteria. We also address the issue of confounding by a risk factor by chance in finite sample by proposing a modification on the previously proposed simulationbased CIE approach. Next, we demonstrate the application of CIE criteria in a realworld study of mercury and depressive symptoms, and where theory can be injected into the process to optimize causal inference.
Methods
Empirical confounder identification strategies
Overview
Five strategies were used, namely significance criteria with cutoff levels of pvalues fixed at ≤0.05 and 0.2 (in which a putative confounder is adjusted for if the pvalue of the ttest of the null hypothesis testing its effect on outcome equals zero is smaller than the cutoff levels), and CIE criterion with three different cutoff levels (fixed a prior at 10 %, with type I error controlled to a desired level, and with type II error controlled to a desired level). The observed change in estimate due to covariate Z is calculated as Δ=(θ_{ 0 } – θ_{ Z })/(θ_{ 0 }), where θ_{ 0 } is the effect estimate of interest not adjusted for suspected confounder Z and θ_{ Z } is the effect estimate adjusted for suspected confounder Z. When CIE approach is used, a covariate Z is included in the final model if its inclusion in regression model produces Δ ≥ δ_{ c }, where δ_{ c } is 0.1 in the 10 % CIE approach, or δ_{ c } is determined by simulations as described below. We will describe simulationbased CIE approaches in more detail below, as well as prescreening aimed to reduce confounding by a risk factor by chance.
Simulationbased change in estimate (CIE) approach
As a way of improving on an empirical approach with criteria fixed a prior, we previously proposed a simulationinformed CIE strategy [5] that performs better in confounder identification and causal effect estimation [17]. In brief, the simulationinformed CIE criterion determines change in the effect estimate of interest that arises when the exposure of interest is adjusted for an independent random variable. With this approach, an independent random variable with the distribution identical to the observed putative confounder is drawn and the causal effect estimates of the exposure and outcome adjusting and not adjusting for this independent random variable are obtained. Next, we record the changeinestimate that results from adjusting this independent random variable. The above procedure is repeated and the resulting distribution of changes in effect estimates upon adjustment indicates where we need to place a cutoff for the CIE criterion in order to achieve the desired type I error, e.g. for 5 % error the 95 %percentile of the distribution is used. One can also adopt a CIE criterion with a desired type II error. To do so, one repeatedly simulates a variable with particular correlations with the exposure and outcome, and compares the CIE from models that do and do not adjust for this simulated confounding variable. Using the sthpercentile of the simulated CIEs as a cutoff could yield a type II error of 1s. In our simulations, we focus on selection of these two CIE cutoffs. In the next section, we describe this procedure in more detail, infusing it with consideration of measurement error.
Screening potential structural confounders
In preliminary investigations, application of simulated CIE approach resulted in an unacceptably high rate (e.g. 50–80 % in some instances) of identification of a risk factor as a structural confounder when it was in fact not correlated with exposure of interest in the population (i.e. by data generating process). We identified correlation of exposure and covariate in finite samples as the culprit of this artifact and developed a screening step that evaluated correlation of exposure and putative confounder before evaluating it further via the five strategies described above. Specifically, only if the hypothesis that the observed exposure and covariate were not correlated was rejected, then the covariate was considered further in the identification of structural confounding. On the other hand, if the hypothesis that the observed exposure and covariate were not correlated was not rejected, then the covariate was excluded from further evaluation in the identification of structural confounding.
Simulation study: overall framework and method of analysis
In specific simulations that we undertook, we assumed that (a) the exposure is associated with the outcome and (b) the putative confounder is indeed a confounder by virtue of its association with both exposure and the outcome (but not the descendant of them). As in many reallife situations, the exposure and confounder are measured with error: for simplicity, we focus on additive classical measurement error models with uncorrelated errors (but our simulation framework can readily be amended to accommodate more complex situations).
The disease model that was considered in our investigation was of the form g(Y) = α + βX + γZ, with g() representing the link function of the generalized linear model, the fixed effects α (background rate or intercept), β (influence of exposure X on outcome Y), and γ (influence of covariate Z on outcome Y). The regression coefficient β is only identical to true value of the effects of interest in linear regression but for logistic and Cox proportional hazard regression, the effects of interest is calculate as relative risk (RR) and hazard ratio (HR), respectively. We denote these true effects of interest as θ for generality.
We assumed that we can only observe realizations of true exposure and confounder with classical additive measurement error models X^{*} = X + ε_{ x } and Z^{*} = Z + ε_{ z }, the error terms are unbiased and independent of each other. The estimates of regression coefficients β from (Y, X^{*}, Z^{*}) data with and without adjustment for Z^{*} are denoted by β_{ Z }^{*} and β_{ 0 }^{*}, respectively. These regression coefficients can be used to calculate estimates of the effect of interest θ as θ_{ Z }^{*} and θ_{ 0 }^{*}, with and without adjustment, respectively; the superscript “^{*}” denotes variables and estimates contaminated by measurement error.
The screening test for Pearson correlation of X^{*} and Z^{*} being different from zero used p≤0.05 cutoff. The datasets where covariates Z were not rejected are evaluated using the simulated CIE cutoff calculated as follows.
The simulated CIE cutoffs in presence of measurement error are determined by comparing effect estimates relating X^{*} to Y with and without adjusting regressions of Y on X^{*} for an independent random variable Z_{ 0 } with distribution identical to that of Z^{*} over K simulations. Let us denote such effect estimates, functions of regression coefficient, as θ_{ 0 }^{*}_{ k } when unadjusted coefficient is used, and as θ_{ Z0 } ^{*}_{ k } when the adjusted coefficient for Z_{ 0 } (not the same as adjusted for Z) is used in the k^{th} simulation. Then, the changes in the estimates in each simulation are then calculated, in general, as
and the q^{th}percentile of δ_{ k } determined over K simulations the cutoff for CIE that would lead to a type I error of 1q, i.e. δ_{ c }. The CIE that is simulated to achieve desired type II error can be obtained in a similar manner, with the independent random variable Z_{ 0 } replaced by a random variable correlated with X^{*} and Z^{*} according to the simulation setting (i.e. under the assumption that we guessed correctly the true nature of associations in datagenerating process), and the s^{th} percentile of δ determined over K simulations the cutoff for CIE that would lead to a type II error of s. As with all power calculations, this requires an informed guess of the structure we aim to detect and is therefore the more difficult criteria to establish objectively (e.g. we do not know true value of all the correlations from the data contaminated by measurement error) as opposed to the one that strives to control type I error.
Simulation study: the specific scenarios
Our example synthetic data scenario features an outcome Y and three different types of outcome were generated, namely binary (with the disease prevalence at followup of 10 %), continuous (with a variance of 1), and survival (with the death rate at followup of 10 %). The exposure X and true confounder Z both simulated to follow standard normal distributions, Z is associated with both X (via Pearson correlation ρ ≠ 0) and Y (γ ≠ 0). The binary, continuous, and survival data were generated and fitted using a logistic model (ln(P(Y = 1)/P(Y = 0) = ln(1/9) + βX + γZ)), a linear model (Y = βX + γZ + ε_{ y }, ε_{ y } ~ N(0, 1)), and a Cox model (survival time ~ exp(βX + γZmin(βX + γZ)), censored at survival time > 0.1), respectively. The survival times were generated as follows: (1) mean survival time for all subjects equaled βX + γZ, (2) the aforementioned means survival times were linear transformed to make then all positive by subtracting the minimum value of (βX + γZ), (3) the survival time for each subject was generated to follow an exponential distribution with rate parameter equal to mean survival time from step (2), (4) survival times were censored at a value of 0.1 so that the outcome was observed in only 10 % of subjects.
In illustrating the kind of information that this tool can yield, we obtained N = 10,000 simulation realizations of a cohort study (yielding a standard error of 0.5 %) of either n = 500 or 2,000 subjects, with ρ∈{0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9} and the true causal associations of XY and ZY with β = γ =0.1, as well as a situation in which exposure of interest is measured with smaller error than or equal to the putative confounder, i.e. ε_{ x } ~ N(0, σ_{x}^{2}∈{0.25, 1}) and ε_{ z } ~ N(0, σ_{z}^{2}∈{0.25, 1}). We used K = 10,000 to determine simulationbased CIE for each combination of parameters defined a simulation framework above.
In each n^{th} simulation realization (1, …, N), when screening potential confounders, we evaluated Pearson correlation of X^{*} and Z^{*} (ρ_{ n }^{*}) and rejected Z^{*} as potential confounder when pvalue of the null hypothesis ρ_{ n }^{*} = 0 was larger than 0.05. In such instances, final model selected excluded Z^{*}. If Z^{*} remained in contention for role of structural confounder after the screening text, we next estimate the effects of X^{*} on Y in simulated datasets by

(a) fitting a regression model appropriate for each outcome with X^{*} as an independent variable and Y as the dependent variable (i.e., do not adjust for Z^{*}), resulting in estimate of effect of X on Y as θ_{ 0 }^{*}_{ n }, which is a function of β_{ 0 }^{*}_{ n }, and

(b) fitting a regression model appropriate for each outcome with X^{*} and Z^{*} as independent variables and Y as the dependent variable (i.e., adjust for Z^{*}), resulting in estimate of effect of X^{*} on Y as θ_{Z}^{*}_{ n }, which is a function of β_{ Z }^{*}_{ n }.
Effect estimate and pvalues resulting from these models of the n^{th} simulation realization are compared and, depending on the confounder selection rule that was triggered, the final estimate of the effect of X on Y in that particular simulated dataset was computed by either model (a) or (b).
We also calculated root mean squared error (RMSE) of effect
, where in the n^{th} simulation (n ∈ {1,…,N}) φ_{ n } = θ_{ Z }*_{ n } if the confounder identification criteria suggested an adjustment, and φ_{ n } = θ_{ O }*_{ n } otherwise; recall that θ is the true value of the effect estimate set by simulation.
All simulations were carried out using R 3.2.0. The R code we provide allows one to test various CIE cutoffs in order to determine the percentage of the simulated datasets correctly identifying Z^{*} as a confounder or effect of X^{*} as significant, as well as RMSE resulting from model selected after application of each confounderidentification strategy (Additional file 1).
Application to study design to clarify role of a confounder in NHANES
We illustrate the application of our approach in an example arising from an earlier analysis of exposure to total blood mercury (E) and depression (D) in 6,911 adults aged ≥40 years in the National Health and Nutrition Examination Survey (NHANES) 2009–2010 [18] approved by The National Center for Health Statistics Research Ethics Review Board; informed consent was obtained from all participants at the time of data collection and further consent for specific analyses of this publically available data is not needed. The dataset can be downloaded at http://wwwn.cdc.gov/Nchs/Nhanes/Search/nhanes09_10.aspx.
Contrary to an expected null association between exposure and outcome, a nonsensical inverse (protective) association was reported and the original investigators argued that this was probably due to measurement error leading to residual confounding by fish consumption (F) [18]. That study assessed the binary recall of fish consumption in the 30 days prior to data collection (F_{ obs }). This variable does not demonstrate statistical properties that support its inclusion as a confounder in the final model because (a) pvalue for F_{ obs } in the logistic regression model = 0.82, and (b) inclusion of F_{ obs } the final models does not affect the observed RR_{ED  Fobs} = 0.83 (OR_{ED  Fobs} = 0.79) of depression due to mercury to the third decimal place. Nonetheless, it is important to note that our preliminary test for potential confounding would not have rejected F_{ obs } from the final model because there is evidence that it is correlated with exposure to mercury, albeit “weakly”: Pearson correlations of 0.39 with mercury exposure (95 % CI 0.37–0.41, p< 0.05). Furthermore, given the established effects of habitual fish consumption F on blood mercury E [19] and depression D [20], Ng et al. [18] suspected that F is a confounder of association of total blood mercury with depression (see Fig. 1 for the DAG of the causal association), and that the pattern of results arose because F_{ obs } is a poor measure of unobserved F.
Let us suppose that in the course of future research we have a particular method of measuring fish consumption (W) with a known degree of measurement error that may prove to be superior to F_{ obs }. It is important to note that we do not wish to use F_{ obs } in the new research project with the same sample: it yielded what we believe to be confounded estimates and the motivation of new research would be to improve on quality of data to understand the problem better. We need to simulate W because it is not given in the data but is a reflection of what we can hope to obtain in the study that is being planned under the assumption of given causal structure: we can never hope to measure F itself but need to be generate W and thereby evaluate performance of W. We want to know two things: (a) whether W is a confounder of the mercurydepression relationship, and (b) whether models adjusted for this measure of fish consumption W will result in the hypothesized null mercurydepression association (i.e., RR_{ED  W} = 1, as opposed to the observed estimate RR_{ED  Fobs} = 0.83) Here, W is related to true habitual fish consumption F by classical measurement error: W = F + ε, ε ~ N(0, σ^{2}); F ~ N(0,1); ε is independent of both E and F. To more specifically motivate these assumptions, reflecting on common experience in exposure assessment, we consider that F is a measure of fatty acid intake that is measured by a biomarker and then normalized to Gaussian distribution via logtransformation, hence additive measurement error model for W and distributional assumptions can be appropriate. In practice, such assumptions would be verified in a validation or reliability study.
We assumed that total blood mercury E is nearperfectly measured because a precise analytical technique exists. To simplify, we ignored the matter of etiologically relevant windows of exposure, although this may not be trivial because the biologic halflife of mercury in blood is short.
Based on prior research [18], we also assumed: (a) the association between F and D is based on the correlation of underlying continuous measures of F and D, and set it to ρ_{ FD } = −0.35, and (b) that the correlation of F and E is ρ_{ FE } = 0.39, same as the observed correlation F_{ obs } and E. With these inputs, we simulated true (F) and mismeasured (W) values of fish consumption subjected to different magnitudes of measurement error. Under various conditions of measurement error, we simulate W 10,000 times. Different degrees of error in measured confounder, σ^{2}, were examined. We acknowledge that a different model for confounding could have been postulated and included in our simulation framework but we followed the path deemed as sensible by the original investigators in [18].
To empirically determine whether measured fish consumption (W) would correctly remove confounding from effect of mercury on depression, the proportions of simulated datasets in which the adjusted association of mercury on depression, RR_{ED  W}, has p >0.05 were recorded. This is akin to asking how well should we measure confounder in order to have the power to observe true exposureresponse association upon adjustment. We also reported the simulationdetermined confounder identification criterion described above (i.e. aimed to control type I error at 5 %) to compare it to the conventional CIE of 10 %. Finally, we also determined the average and the 95 % empirical confidence intervals of the estimates of the mercurydepression association with adjustment for simulated values of W based on the 10,000 simulations, in order to determine how well the adjustment for W is able to estimate a specified true causal effect of ED adjusted for F. (The number of simulations we informed by the observations that it was sufficient to obtain stable behavior of simulation realizations; in every specific situation, a difference size of simulation may be needed.) This reflects a theoretical perspective for confounder identification where based on some predetermined DAG, W is theoretically a confounder of the exposureoutcome association and should therefore be included in models regardless of measurement properties. To visualize the empirical distribution of RR_{ED  W}, we plotted its histogram from the 10,000 simulated estimates with σ^{2} = 1. The R code for the simulations can be found in the Online Supplementary Materials (Additional file 2).
Results
In the synthetic example, we performed simulations comparing CIE between models that did and did not adjust for the confounder. Results of the simulations are shown in Figs. 2, 3, 4, 5, 6 and 7. The simulations indicated that a change in the estimate of the exposureoutcome relationship of 0.2 % (e.g. Cox model, n = 2,000, σ_{x}^{2} = σ_{z}^{2} = 1, ρ = 0.4) to 7.3 % (linear model, n =500, σ_{x}^{2} = σ_{z}^{2} = 1, ρ = 0.5) between models that do and do not adjust for the confounder is expected to result in type I error 5 % in the studied settings. The control of type II error to 20 % was achieved with simulated CIE on the order of 0.25 % (binary model, n =2,000, σ_{x}^{2} = 0.25, σ_{z}^{2} = 1, ρ = 0.2) to 64 % (linear model, n =2,000, σ_{x}^{2} = 1, σ_{z}^{2} = 0.25, ρ = 0.9). Upon further investigations, we found that the simulationdetermined cutoff was very sensitive to measurement error in exposure and potential confounder; there was some tendency for an inverse association between the cutoffs but the clear pattern was only apparent for large error variances (details available upon request). For example, under the scenario of linear regression, n =500, ρ = 0.5, and σ_{z}^{2} = 1, the simulationdetermined cutoff with expected type I error of 5 % equaled 3.6 % when σ_{x}^{2} = 0.25 and increased to 7.3 % when σ_{x}^{2} = 1. We also verified that evaluation of p(ρ^{*} = 0) with criteria of 0.05 was important in this setting for controlling false positives. In absence of such a screening test, the rate of Z falsely identified as structural (rather than chance) confounder was commonly on the order of 50–80 % as seen by acceptance of Z^{*} as confounder when in fact ρ = 0 by simulation (details available upon request).
Comparison of confounder identification strategies in a synthetic data: identification of structural confounder
Compared with the empirical criteria tested that were fixed a priori (significance criteria with cutoff levels of pvalues of 0.05 or 0.20, and CIE criterion with a cutoff of 10 %), the two simulationdetermined CIE criterion exhibited superior performance in selecting the correct model within at least 80 % of simulated datasets for exposureconfounder correlation of 0.2 or higher. In contrast, the three traditional methods perform poorly in all three outcome models.
The traditional methods identified a true confounder generally in less than 60 % of the simulated datasets with binary outcomes (logistic regression), even when the cohort size increased from 500 to 2,000 (Figs. 2 and 3, lefthand panels). The gap in performance in cofounder identification was more apparent for smaller cohort (Fig. 2, lefthand panels): 20–40 % drops in power for the stronger simulated confounding with ρ>0.5. Similar gap in performance remained when cohort was increased to 2,000 while measurement error in exposure was fixed at the lower value, and when measurement error in cofounder was greater than that in exposure (Fig. 3, top 2 lefthand panels). However, as both cohort size and measurement error in exposure increased and confounding became stronger (ρ>0.3), a more regular pattern of power was observed: CIE criteria simulated to control type I error had power 70–100 %, CIE criteria simulated to control type II error had power 70–80 %, significance test p<0.20 had power 40–60 %, significance test p<0.05 had power 20–30 %, and 10 % CIE criteria failed to identify structural confounder in almost all instances (Fig. 3, bottom 2 lefthand panels).
In linear regression, the traditional methods were more comparable to simulatedbased CIE approaches but their performance depended on strength of confounding and degree of measurement error in a complex fashion. When higher value of error variance in exposure X were examined, all approaches had similar performance in confounder identification for the large cohort of 2000 (Fig. 6, bottom 2 lefthand panels), except that CIE method designed to control type II error to 20 % behaved erratically as strength of confounding increased beyond ρ = 0.3. In smaller cohort size with the same “large” error in exposure (Fig. 5, bottom 2 lefthand panels), however, there was a clear advantage to simulationbased CIE method catered to control type I error to 5 %, especially when cofounding grew stronger: it maintained power of at least 80 % beyond ρ = 0.3 whereas significance testing and CIE cutoff for control of type II error to 20 % were less successful, with power dropping below 80 % as both the strength of confounding (ρ >0.3) and measurement error in confounder increased (Fig. 5, bottom lefthand panel). The divergence in performance of different criteria was the greatest when error in confounder exceeded error in exposure and the cohort size was smaller (e.g. compare Fig. 5, 2^{nd} from top lefthand panel vs. Fig. 5, 2^{nd} from top lefthand panel).
Survival analysis mimicked linear model but deficiency of performance of traditional approaches tended to be greater and, paradoxically, worse with smaller measurement errors for exposure. For example, in survival analysis with cohort size of 2,000 and error variances 0.25 (the smallest tested) and strongest confounding (ρ = 0.9), when simulated CIE criteria correctly included Z as confounder in >80 % of cases, the “significancetesting” approaches had power of 30–60 % only (Fig. 7, top left hand panel). The gap in performance reduced when error variances increased to the largest value tested: 90 % vs. 60–80 % (Fig. 7, bottom left hand panel); it must be noted that the reverse pattern held for the 10 % CIE approach as its power dropped to zero as measurement error increased. It can be observed that when error in confounder increased for this setting, but error in exposure was help constant, the significance criteria suffered greatest loss of performance (from power of 90 % to <40 %) and 10%CIE criterion dropped power from about 60 % to <10 % (Fig. 7, two middle left hand panels). The patterns in smaller cohort of 500 were similar (Fig. 6).
Comparison of confounder identification strategies in a synthetic data: precision
The simulationdetermined CIE criterion achieved the smallest RMSE in all survival analyses (Figs. 6 and 7, right hand panels). In linear models, the pattern was complex. For the smaller cohort size, simulationbased CIE approaches led to smaller RMSE only when error in exposure measurement was at the lower tested value (Fig. 4, two upper right hand panels), otherwise, the significance testing approached yielded smaller RMSE (Fig. 4, two bottom right hand panels). For a larger cohort, linear model built using simulation based CIE tended to be associated with lower RMSE (Fig. 5, right hand panels). In logistic regression, simulationbased CIE approaches also tended to produce larger RMSE for the smaller of the tested cohort (Fig. 2, right hand panels), with the 10 % CIE criteria leading to the lowest RMSE across varying degrees of confounding (Fig. 2, bottom right hand panel). When a large cohort was considered in logistic regression analysis, the simulationbased approaches had lower RMSE when measurement error in exposure was fixed at a smaller value only (Fig. 3, right hand panels), just like in the linear model.
Larger degree of measurement error tended to produce lower RMSE values (e.g. survival analysis, Figs. 6 and 7, right hand panels), possibly indicating clustering of estimates around attenuated effect estimate and conveying false certainty in the effect estimate under measurement error. There was also a tendency for RMSE to increase with the degree of cofounding in most studied settings (Figs. 2, 3, 6 and 7, right hand panels) However, the RMSE deceased with the exposureconfounder correlation in linear models, when the measurement errors of exposure and confounder were both “large” (i.e. set at 1) (Figs. 4 and 5, bottom right hand panels). On the other hand, when measurement errors are smaller, in linear model there is an increase in RMSE with the strength of confounding (Figs. 4 and 5, top 3 right hand panels) as in other models.
Influence on power of excluding a true confounder by the screening procedure
We can expect the screening of correlation of potential confounder and exposure by means of testing correlation between them to erode power: observed correlation in a sample can be very weak and imprecisely estimated even when there is true correlation in the population. This can be expected to most serious in small sample sizes and for weak true correlations. We examined this issue by examining loss of power due to the screening procedure in the case of n = 500 (small sample size in our simulation). We noted that our screening procedure excluded variables with little correlation (ρ≤ 0.1 for σ_{x}^{2} = σ_{z}^{2} = 0.25, and ρ≤ 0.2 for σ_{x}^{2} = σ_{z}^{2} = 1) with the exposure, and for ρ >0.3 these variables were nearly never being excluded (Fig. 8). When confounding was weak, the loss of power was more apparent. Thus, there appeared to be observable loss of power only for the weakest strength of confounding and when error variances are large.
Application to the mercury, fish consumption, and depression example
As the degree of measurement error in the confounder increases, there is a precipitous drop in the proportion of analyses that would correctly suggest a null association (i.e. p > 0.05) of total blood mercury with depression (Table 1). If the noisetosignal ratio (error variance in confounder (σ^{2})/variance of confounder) is at or below about half, roughly 80 % of the simulated analyses adjusting for fish consumption would correctly result in a null association of mercury and depression. We also observed that for the most part, if the confounder is forcibly adjusted for (as can be expected when a DAG confounder identification strategy is used) even while measured imperfectly, the effect estimates are noticeably much less confounded (i.e., RR closer to 1) as compared to the unadjusted RR of 0.83. Only when the noisetosignal ratio is 1 or larger does adjusting for the missmeasured confounder make little to no difference. In other words only an extremely poorly measured confounder is not useful to adjust for in this setting.
If we do not have sufficient knowledge to guide a theorybased confounder selection strategy, application of model selection cutoffs may be useful. In this specific setting, a simulationderived CIE cutoff was small (0.06 %). If such a strategy is adopted, for the observed RR = 0.83 a change of 0.1 % after adjustment for W identifies it as a confounder, even though one can question whether such a small change is discernible from background noise in realistic applications. The degree to which it is important to remove such a degree of confounding depends on the specific application and can range from immaterial to important depending on the association of interest and the role it plays in whatever action is taken on the basis of effect estimation. However, it is clear that the CIE of 10 % is too coarse to detect confounding in this setting with the desired certainty.
Figure 9 shows the empirical distribution of the adjusted RR for the noisetosignal ratio of 1 (median 0.909, interquartile range 0.905–0.914). We can see that we expect all estimates to be closer to null than the naïve and can therefore take the observed effects of that size to support the hypothesis that an apparent mercurydepression association is due to confounding by fish intake. Thus, even if residual confounding is not eliminated after adjusting for a mismeasured confounder, we can still determine whether evidence supports its role as a confounder. This clearly argues for a much more liberal rule for evaluating evidence for confounding, based on statistical grounds alone in the given motivating example, in the presence of measurement error in confounder, than is permitted by the 10 % CIE criteria. It also illustrates the peril of reliance on hypothesis testing: we do not expect to find a statistically significant effect of fish intake in the example illustrated in Fig. 9 and yet all “imperfectly” adjusted point estimates of RR are expected to be less biased than the crude value. This further argues for forcing a variable into a model if there is a theoretical reason to do so, regardless of whether a frequentist hypothesis test indicated an association.
Discussion
Overview of findings
Our study provides a framework that evaluates the performance of various empirical criteria with considerations of strength of causal and confounding effects, sample size, measurement errors in exposure and confounder, and types of outcomes. This framework is useful for study design and planning. During the stage of study design, researchers often need to choose, among many options, the tools for measuring the exposures and confounders. For example, they can choose among selfreport or objectivelymeasured BMI, physical activity level, and dietary intake. Using the existing results from validation studies [10–13], researchers can make use of our framework to choose the most appropriate measurement tools that maintain a balance between the error of causal effect estimation and the total cost induced.
We were also successful in proposing a solution to the problem of false positive identification of risk factor as confounder in a finite sample. A simple evaluation of correlation between exposure and potential covariate achieved nearly perfect power. We emphasize that this is finitesample problem that arises due to chance correlation, induced by the fact that X and Z are both related to Y, inducing a chance XZ association via Y that had a tangible impact (i.e. on the order of simulated CIE cutoff) on estimate of effect of X on Y upon inclusion of Z in a regression model. This phenomenon disappeared when sample size was boosted and worsened in finite samples with large values of β_{ Z } (details available on request). Even if Z is not identified as structural confounder, there is a good reason to include it in the final estimate to remove as much as possible confounding from the estimate of effect of X, however, in doing so, the understanding of problem under study is increased by gaining evidence for chance versus structural confounding by Z.
In practice, epidemiologists that use DAG to identify confounders try to distinguish between several plausible DAGs: this lies at the heart of confounder identification problem. However, all assumptions about plausible DAGs made by investigators can be wrong such that any choice among alternative causal structures does not reflect the true state of nature. Our work does not address such situation but it would be important to consider such a possibility in any truly improved approach to selection of confounder identification method; we believe that this is possible via simulations in a specific setting and allude to this in presentation of empirical example elaborated in this paper.
Given the complexity of factors that influence selection of confounder identification approach and tools even in our relatively simple settings, a practical approach is to customize simulations to reflect uncertainties about causal structures and imperfections of data when making such choices instead of reply on any a priori advice. Previous simulation studies showed that a priori advices such as significance criteria and 10 % CIE may lead to wrong decision of confounder adjustment when the exposure variable is error prone [21]. While a simulationderived CIE criterion would change for every data situation, our study indicates that using simulations to inform model selection is both feasible and desirable during the studyplanning stage, using information that most investigators possess: the knowledge of quality of instruments measuring exposure and confounders, as well as plausible strengths of the associations. It must be emphasized that we propose a solution to a problem that is sensitive to each specific application and, as such, our method is guaranteed to outperform any general advice such as 10 % CIE, unless, by chance, simulationbased CIE are identical to 10 %, in which case our method will have identical performance relative to the general advice.
Interpretations of findings from analysis of simulated studies
Despite complexities of patters of our results, they seem to exhibit several general tendencies. As the strength of confounding increases, the chance of identifying confounder, when present, also grows across constellations of measurement error, type of outcome and sample size, implying that all confounder identification strategies tend to perform better in picking up stronger effects. Most of our findings were consistent across different outcome types.
With respect to precision of the exposureoutcome association as measured by RMSE, there appear to two competing phenomena. As measurement error of the exposure increases, under the postulated classical measurement error model, for all regression coefficients to be attenuated towards null [7], such that whether an estimate is corrected for confounder or not would make little difference to its attenuated value that tends towards the null and a poorlymeasured confounder would do little to remove true confounding in regression model. This would have the net effect of the RMSE to become independent of the strength of confounding or confounderidentification strategy. This is also indeed the case of real data example with confounder (fish consumption) very poorly measured. On the other hand, when measurement error is moderate (i.e. not so strong as to push estimate of the effect of exposure nearly to the null and to make any adjustment inconsequential to its magnitude), RMSE tends to decrease with superior confounderidentification strategy, i.e. correctly specifying the outcome model has tangible benefits. Unsurprisingly, RMSE is smaller for weaker confounding where there are fewer penalties for failing to adjust for confounder. These influence of RMSE create a rotation in RMSE versus the strength of confounding curves such that it may appear that RMSE declines with the strength of confounding with the rise of measurement errors, whereas in fact all we witness is the tendency for RMSE to become independent of measurement begin to dominate the tendency for RMSE to be larger when confounding is stronger.
The RMSE has to be interpreted with cautions, as it is a combination of squared bias and standard error of the causal effect estimate. In logistic regression (n = 2,000) with the largest examined measurement errors, 10 % CIE criteria leads to the smallest RMSE for strong confounding but it is essential to note that this is based almost exclusively on unadjusted estimates because confounder was almost never included in the final model (Fig. 3). We hypothesized that this phenomenon is due to the fact that with a poorlymeasured exposure we expect the estimated causal effect would be zero (i.e., an RR of 1). The low RMSE in this case is the result of tight clustering of unadjusted attenuated estimates around wrong value of the effect estimate, a phenomenon that was previously described in theoretical work [14] that leads to overconfidence in wrong estimates in presence of measurement error. Another tendency that is acting on the observed RMSE is due to the fact that when exposureconfounder correlation increases, the standard errors of the maximum likelihood estimate of adjusted causal effect also increases, leading to the increase of RMSE.
We present two types of simulated CIE criteria: designed to control either type I or II errors. When the cutoff values of the two criteria are similar, we are in the fortunate situation where both types of error are controlled to the desired degree. In the synthetic examples that we evaluated, there appears to be little difference in RMSE for the two simulationbased CIE approaches. The two approaches diverged in success in confounder identification per se, but both outperformed significance testing and fixed cutoff of 10 % CIE.
Depressionmercuryfish consumption example
The real data analysis of the NHANES data illustrated how researchers can make use of our framework to choose the most appropriate measurement tools that maintain a balance between the error of causal effect estimation and the total cost induced. By applying our framework, information about the degree of accuracy, validity, or measurement error one needs to achieve in order to obtain a less biased estimate of the causal relationship. For instance, our simulation result informs us that a noisetosignal ratio of 0.5 or smaller for the variable fish consumption is desirable when we wish to estimate the causal relationship between total blood mercury and depression. In planning such an analysis, in the planning stage researchers should avoid using measurement tools that are only weakly correlated with the true nutrient intake, for example foodfrequency questionnaire [10].
The real data analysis is founded on the assumption that here is no reason for exposure to mercury to be protective of risk of depression and therefore cofounding by fish consumption, known to be protective, is suspected. Of course one can assume that there is a small positive effect of mercury that is reversed by stronger negative confounding by fish consumption. One can repeat our simulations in such a way that mercury would have a causal risk factor, e.g. by weakening correlation of mercury with fish consumption or assuming weaker beneficial effect of fish consumption on the outcome. We did not explore this possibility in order to limit future considerations of plausible continuation of work in this setting as discussed in [18].
Limitations
A major limitation of our study is that we considered a limited number of scenarios. If the assumptions of our simulations were violated, for example if the model is misspecified, or if the errors do not follow normal distribution, the conclusions will be altered. Ideally, readers interested in implementing our approach should consider the validity of these assumptions and implement necessary modification to our R code. Another limitation is that the associations between exposure, confounder, and outcome maybe unknown. We believe it is possible (and desirable) to conduct analyses while acknowledging partial knowledge about causal structures, measurement error and exposure misclassification (e.g. using Bayesian framework [14, 22]): this may prove to be a promising extension to our work.
Another limitation is that we did not evaluate our framework under multiple confounders but this can be done in practice by slight modification of our R code. On the other hand, conceptually, one confounder may stand for multiple confounders that do not cancel each other out (e.g. see [8]), so our approach with one confounder should retain some generalizability.
One can argue that when measurement error is present, suitable analytical approach, for example regression calibration [23, 24] or simulation and extrapolation (SIMEX [25]), should be applied to remove its influence from inference before engaging in the discussion of suitable confounder identification strategy. This is certainly a sensible approach and the one that, to the extent possible, should be advocated. However, we wish to point out that measurement error correction is not routinely practiced by epidemiologists [26] and until such time that this changes, it is still relevant to consider how the historically and currently acceptable analytical strategies for modelbuilding perform in practice.
Conclusions
The impact of measurement error in a putative confounder on the selection of a correct disease model and testing of presence of confounding can be complex and difficult to predict in general. However, targeted investigations into how well one has to measure the confounder and how to interpret data contaminated by residual confounding are possible. They can inform and motivate work on better efforts to quantify risk factors and can help gauge the added value of such work. If an investigator plans to use regression methods to control for confounding and to empirically select among all plausible confounders the subset that can be evaluated with the data they are advised to determine what CIE criteria are most suitable in their situation [5]. While use of causal diagrams is certainly helpful in guarding against most egregious mistakes in model specification, causal diagrams may be incorrect or the putative confounder may have so much measurement error as to be entirely useless for adjustment purposes. Likewise, statistical considerations alone do not guaranteed selection of correct model. Therefore, one has to triangulate confounding using all available knowledge and tools [15].
We conclude by emphasizing that no a prior criterion developed for a specific application is guaranteed to be suitable for confounder identification in general. The customization of modelbuilding strategies and study designs through simulations that consider the likely imperfections in the data would constitute an important improvement on some of the currently prevailing practices in confounder identification and evaluation.
Ethics approval and consent to participate
NHANES 2009–2010 was approved by The National Center for Health Statistics Research Ethics Review Board; informed consent was obtained from all participants at the time of data collection and further consent for specific analyses of this publically available data is not needed.
Availability of data and materials
The NHANES 2009–2010 dataset can be downloaded at http://wwwn.cdc.gov/Nchs/Nhanes/Search/nhanes09_10.aspx.
References
 1.
VanderWeele TJ, Shpitser I. A new criterion for confounder selection. Biometrics. 2011;67(4):1406–13.
 2.
Shahar E. A new criterion for confounder selection? Neither a confounder nor science. J Eval Clin Pract. 2013;19(5):984–6.
 3.
Mickey RM, Greenland S. The impact of confounder selection criteria on effect estimation. Am J Epidemiol. 1989;129:125–37.
 4.
Maldonado G, Greenland S. Simulation study of confounderselection strategies. Am J Epidemiol. 1993;138(11):923–36.
 5.
Lee PH. Is the cutoff of 10 % appropriate for the changeinestimate confounder identification criterion? J Epidemiol. 2014;24(2):161–7.
 6.
Bliss R, Weinberg J, Webster T, Vieira V. Determining the probability distribution and evaluating sensitivity and false positive rate of a confounder detection method applied to logistic regression. J Biom Biostat. 2012;3(4):142.
 7.
Fewell Z, Davey Smith G, Sterne JA. The impact of residual and unmeasured confounding in epidemiologic studies: a simulation study. Am J Epidemiol. 2007;166(6):646–55.
 8.
Gustafson P, McCandless LC. Probabilistic approaches to better quantifying the results of epidemiologic studies. Int J Environ Res Public Health. 2010;7(4):1520–39.
 9.
McCandless LC, Gustafson P, Levy AR. A sensitivity analysis using information about measured confounders yielded improved uncertainty assessments for unmeasured confounding. J Clin Epidemiol. 2008;61(3):247–55.
 10.
Brunner E, Stallone D, Juneja M, Bingham S, Marmot M. Dietary assessment in Whitehall II: Comparison of 7 days diet diary and foodfrequency questionnaire and validity against biomarkers. Br J Nutr. 2001;86(3):405–14.
 11.
Lee PH, Macfarlane DJ, Lam TH, Stewart SM. Validity of International Physical Activity Questionnaire Short Form (IPAQSF): A systematic review. Int J Behav Nutr Phys Act. 2011;8:115.
 12.
Spencer EA, Appleby PN, Davey GK, Key TJ. Validity of selfreported height and weight in 4808 EPICOxford participants. Public Health Nutr. 2002;5(4):561–5.
 13.
Van Poppel MNM, Chinapaw MJM, Mokkink LB, Van Mechelen W, Terwee CB. Physical activity questionnaires for adults: A systematic review of measurement properties. Sports Med. 2010;40:565–600.
 14.
Gustafson P. Measurement Error and Misclassification in Statistics and Epidemiology. London: Chapman & Hall/CRC Press; 2004.
 15.
Marshall J. Invited commentary: Fewell and colleagues  Fuel for debate. Am J Epidemiol. 2007;166(6):656–8.
 16.
Evans D, Chaix B, Lobbedez T, Verger C, Flahault A. Combining directed acyclic graphs and the changeinestimate procedure as a novel approach to adjustmentvariable selection in epidemiology. BMC Med Res Methodol. 2012;12:156.
 17.
Lee PH. Should we adjust for a confounder if empirical and theoretical criteria yield contradictory results? A simulation study. Sci Rep. 2014;4:6085.
 18.
Ng THH, Mossey JM, Lee BK. Total blood mercury levels and depression among adults in the United States: National Health and Nutrition Examination Survey 2005–2008. PLoS One. 2013;8(11):e79339.
 19.
Choi AL, Cordier S, Weihe P, Grandjean P. Negative confounding in the evaluation of toxicity: the case of methylmercury in fish and seafood. Crit Rev Toxicol. 2008;38(10):877–93.
 20.
Akbaraly TN, Brunner EJ, Ferrie JE, Marmot MG, Kivimaki M, SinghManoux A. Dietary pattern and depressive symptoms in middle age. Brit J Psychiatry. 2009;195(5):408–13.
 21.
BudtzJørgensen E, Keiding N, Grandjean P, Weihe P, White RF. Consequences of exposure measurement error for confounder identification in environmental epidemiology. Stat Med. 2003;22:3089–100.
 22.
Gustafson P, Greenland S. Curious phenomena in Bayesian adjustment for exposure misclassification. Stat Med. 2006;25:87–103.
 23.
Carroll RJ, Ruppert D, Stefanski LA, Crainiceanu CM: Measurement Error in Nonlinear Models. London: Chapman & Hall/CRC; 2006.
 24.
Cheng CL, Van Ness JW. Statistical Regression with Measurement Error. London: Arnold; 1999.
 25.
Küchenhoff H, Mwalili SM, Lesaffre E. A general method for dealing with misclassification in regression: the misclassification SIMEX. Biometrics. 2006;62(1):85–96.
 26.
Jurek AM, Maldonado G, Greenland S, Church TR. Exposuremeasurement error is frequently ignored when interpreting epidemiologic study results. Eur J Epidemiol. 2006;21(12):871–6.
Acknowledgements
Dr Brian Lee was instrumental in application of our methods to the illustrative example and provided numerous valuable comments during development of the manuscript. The authors are very thankful to Drs Jay Kaufman and George Maldonado for their candid reviews of early draft of this manuscript. The authors did our best to improve our work and take full responsibility for the remaining deficiencies. The authors received no funding for this study, and disclose no conflict of interest.
Funding
None.
Author information
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
PHL designed the study, carried out the simulations, and drafted the manuscript. IB conceived the study and drafted the manuscript. Both authors read and approved the final manuscript.
Additional files
Additional file 1:
R code for simulation study. (ZIP 8 kb)
Additional file 2:
R code for analysis of real data. (TXT 5 kb)
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Received
Accepted
Published
DOI
Keywords
 Causal effect
 Changeinestimate
 Confounding
 Simulation
 Modelselection
 Epidemiology