Abstract
Model selection is an integral, yet contentious, component of epidemiologic research. Unfortunately, there remains no consensus on how to identify a single, best model among multiple candidate models. Researchers may be prone to selecting the model that best supports their a priori, preferred result; a phenomenon referred to as “wish bias”. Directed acyclic graphs (DAGs), based on background causal and substantive knowledge, are a useful tool for specifying a subset of adjustment variables to obtain a causal effect estimate. In many cases, however, a DAG will support multiple, sufficient or minimally-sufficient adjustment sets. Even though all of these may theoretically produce unbiased effect estimates they may, in practice, yield somewhat distinct values, and the need to select between these models once again makes the research enterprise vulnerable to wish bias. In this work, we suggest combining adjustment sets with model averaging techniques to obtain causal estimates based on multiple, theoretically-unbiased models. We use three techniques for averaging the results among multiple candidate models: information criteria weighting, inverse variance weighting, and bootstrapping. We illustrate these approaches with an example from the Pregnancy, Infection, and Nutrition (PIN) study. We show that each averaging technique returns similar, model averaged causal estimates. An a priori strategy of model averaging provides a means of integrating uncertainty in selection among candidate, causal models, while also avoiding the temptation to report the most attractive estimate from a suite of equally valid alternatives.
Keywords: model averaging, causal diagrams, directed acyclic graphs, wish bias
1. Introduction
Model selection is an inherent part of epidemiologic research [1], the optimal procedure for which is still debated. There is concern that investigators tend to select and report results of models that support their a priori beliefs about the association between the exposure and disease of interest, which is referred to as “wish bias” or “white hat bias” [2,3,4]. A growing body of research supports directed acyclic graphs (DAGs) as the first, and sometimes last, step in etiologic disease modeling [5,6]. DAGs are specified before data analysis and, thus, aid investigators in explicating their a priori beliefs about causal relations among variables before seeing the results of data analysis. Unfortunately, a correctly-specified DAG is not necessarily limited to one unique adjustment set; in fact, a single DAG may support many, theoretically unbiased adjustment sets. Further, many equally defensible models may lead to different conclusions regarding the research question of interest [7]. Typically, a researcher will select one among multiple adjustment sets for risk modeling when reporting results. Thus, while DAG analysis is generally an improvement over alternative approaches to model selection, most adopters must still restrict their analysis to the selection of a single regression model.
We propose the use of model averaging as a tool to account more honestly for uncertainty between apparently valid causal models [8]. We will first provide a brief rationale for the use of model averaging; then, we will illustrate its use with an empirical example where a DAG was used for variable selection, but where there were multiple, equally valid adjustment sets available. We will show three simple approaches to combine the results of multiple adjustment sets; information criteria weighting [9], inverse variance weighting, and bootstrapping. The arguments for utilizing directed acyclic graphs (DAGs) are widely available [5,6,10,11], so we will not repeat them here.
1.1. Uncertainty in Causal Modeling
Specification of a DAG is an important step in identifying valid causal models. Importantly, DAGs are specified before data analysis and provide a visual summary of the investigators’ beliefs about the relationships between variables of interest. This is based on a priori knowledge obtained from previous research or other relevant literature. Some researchers recommend specifying and presenting DAGs for all analyses so that readers understand the assumptions made by the authors before undertaking data analysis [12].
Suppose we are interested in the relationship between some exposure (E) and disease (D) for which we have developed a DAG to characterize our subject matter knowledge about potential confounders. We will assume that there are no important effect measure modifiers of this relationship, and that the DAG is a complete and accurate reflection of the causal relations in the target population. A sufficient adjustment set can be described as a subset of variables, adjustment for which will remove confounding of the E-D relationship. Within a DAG, one may identify sufficient adjustment sets which fully adjust for confounding, but from which no element may be removed without their becoming insufficient [5]. Figure 1 provides an illustration of a relatively simple DAG for the E-D relationship, confounded by variables A and B. In this simple scenario, the researcher has a choice between three adjustment sets [7]: [A,B], [A], or [B]; all three are sufficient, and the latter two are minimally sufficient, for estimating the total effect of E to D. Implicit in the identification of sufficient adjustment sets is the observation from the DAG that each will provide an equivalent amount of control for confounding. Thus, adjustment for any of the three sets identified from Figure 1 should produce equal point estimates of the E-D relationship. Note that the variance will likely differ across these three adjustment sets and that [B] would be expected to be the most efficient estimator [13]. In practice, the equivalence of the three adjustment sets identified from Figure 1 relies on many assumptions, the most well-known of which are no residual confounding, selection, missing data, or misclassification biases; also necessary are assumptions of positivity [14], consistency [15], and no interference [16].
Outside of simulations, it is unlikely that all sufficient adjustment sets drawn from a DAG are equally unbiased. In some cases, knowledge regarding data quality or the susceptibility of variables to bias can guide the selection of a sufficient adjustment set. In the case of Figure 1, for example, elimination of A or B, but not both, will leave one sufficient adjustment set [17]. More often, DAGs contain many covariates with complex relationships. Even in the case that knowledge of bias in the measurement of particular variables aids in exclusion of sufficient sets from further consideration, it is not atypical to be left with a choice of two or more adjustment sets that appear equally valid, but result in different estimates of the E-D relationship of interest.
1.2. Averaging Models to Avoid Investigator Bias
Wish (or white hat) bias occurs when an investigator is inclined to report the results of models that support an a priori belief about the results s/he believes to be true. The motivation for this may be financial, but may also result from the belief that certain results best serve public health goals [4]. Even when a DAG is used, model results may differ in their statistical support for an exposure disease relationship or a priori investigator hypothesis, leaving room for wish bias to occur.
Rather than selecting a single regression model, a researcher can instead average over multiple candidate models. This circumvents the need for an investigator to choose a single model as the best for characterizing the relationship between the exposure and outcome of interest. By restricting candidate models to those supported by a DAG, we avoid consideration of models that may induce bias in the estimation of the E-D causal relationship. Examples of this bias include over-adjustment for covariates [13], or confounding of the disease risk estimates by inducing collider-stratification bias [18].
2. Methods
2.1. Example from the PIN Study
We consider a secondary analysis of the association between pre-pregnancy BMI (exposure) and cesarean delivery (outcome) among nulliparous women with a term pregnancy in the Pregnancy, Infection, and Nutrition (PIN) study [19]. The details of this study have been documented previously [20]; thus, we provide only a brief summary here. After consideration of inclusion and exclusion criteria, the final study population consisted of 612 women; among them, 297, 115, and 200 were classified as normal weight, overweight, and obese, respectively. Of the total population, 141 women had a cesarean delivery and the remaining 471 women experienced a vaginal birth after a trial of labor.
The authors of the original article provided a DAG summarizing the potential confounders of interest in their analyses. A group of maternal characteristics were placed within a single node of the DAG; this provided a streamlined presentation, but did not allow visualization of the relationships of each these variables to others, and each other. To facilitate determination of sufficient adjustment sets, we disaggregated these variables so each has its own node, and we added arrows for the relationships of these variables to others in the DAG. Further, to aid in visualization, we remove variables that were in the original DAG but would clearly not be considered in any minimally sufficient adjustment set. Our modified DAG is presented in Figure 2.
Of the variables included in the modified DAG, those considered a necessary element of at least one minimally-sufficient adjustment set included: chronic hypertension (no = 0, yes = 1), gestational weight gain (continuous kilograms), age (continuous years), height (continuous inches), race (white = 0, black = 1, other = 2), education (<12 years = 0, 12 years = 1, >12 years = 2), and pre-eclampsia/eclampsia (no = 0, yes = 1). Finally, the variables, including exposure and outcome, were treated as they were in the original analyses [20]; that is, we did not change or apply categorization to continuous variables or previously-determined categories for any variables of interest.
2.2. Three Approaches for Model Averaging
The goal of averaging is to base inference on the evidence from multiple models, rather than a single, selected regression model. Many authors have provided proof of principle and simulation evidence to support and explain the methods by which results from distinct statistical models can be averaged and the benefits of model averaging [7,9,21,22]; Here, we implemented three techniques for model averaging. First, we utilized the method developed and described by Burnham and Anderson using information criteria [9]. Second, we calculated the inverse variance weighted average of the candidate models [23,24]. Finally, we conducted a simple bootstrapping approach for model averaging [25].
Information criteria, usually Akaike’s (AIC) or Bayesian (BIC), are used to determine the support for any individual model in a set of models. Weighted averaging of the exposure parameter of interest with AIC requires models to be drawn from the same dataset and, thus, have the same number of observations. When we further restricted our analyses to women with complete information on all relevant covariates, the population includes 517 women; 257, 102, and 158 were normal weight, overweight, and obese, respectively. Among this restricted group, 120 women had a cesarean delivery and the remaining 397 women experienced a vaginal birth.
We also present inverse variance weighted averages and a bootstrapping approach for model averaging. Both approaches allow calculation of confidence intervals for the averaged estimate. Using these approaches, the number of observations is not restricted to complete information, as needed for AIC weighting. The inverse variance weighted average approach weighs each model’s parameter estimate by the inverse of the variance of the causal effect estimate. Then, the standard error is weighted by the number of observations with complete information; i.e., records with missing information for a covariate are excluded. For the bootstrap approach, we sample (with replacement) 1000 times. Next, each model is fit to each bootstrap replication. We combine the bootstrap parameter estimates so that the total number of values of each parameter is the number of bootstrap samples multiplied by the number of models. The mean, median, 2.5th, and 97.5th percentiles of the distribution are provided. Calculations for the AIC weights and inverse variance weight model averaged estimates are provided in the Appendix.
We utilize the MuMIn and EPI packages with R statistical software (v 3.0.2). We use Akaike’s information criteria (AIC) to average log risk estimates obtained by fitting generalized linear models; however, we should note that other information criteria, such as Bayesian (BIC), may be used with the MuMIn package. Bootstrap resampling is conducted with SAS statistical software (v9.2, Cary, NC).
3. Results
The parameter estimates obtained from each individual model, and the averaged estimates, are presented in the Table 1, Table 2 and Table 3. Adjustment sets are numbered in Table 1 to simplify discussion; we refer to these numbers in Table 2 and Table 3. The model averaged estimates, using AIC, for the relative risk (95% confidence interval) of cesarean delivery comparing overweight or obese women to normal weight women are 1.33 (0.86, 2.03) and 1.62 (1.09, 2.39), respectively. Results using BIC weighting were identical to AIC weighting and, thus, are not presented. The inverse variance weighted relative risks for cesarean delivery among overweight or obese women compared to normal weight women are 1.37 (0.92, 2.04) and 1.61 (1.15, 2.27), respectively. Finally, the bootstrapping approach for averaging parameter estimates results in relative risks of cesarean delivery among overweight or obese women compared to normal weight women with a median (2.5th, 97.5th percentile values) of 1.34 (0.89, 2.01) and 1.57 (1.07, 2.35); the medians are slightly attenuated compared to the means of 1.37 and 1.60 (Table 3). The averaged relative risks are similar for all three averaging methods. Table 4 presents the confidence limit ratio [26] for each averaging approach. While the inverse variance weighting approach is the most precise, the difference by averaging technique is trivial in this example.
Table 1.
Adjustment Set | Covariates | Overweight vs. Normal | Obese vs. Normal | ||||
---|---|---|---|---|---|---|---|
Risk Ratio | 95% CI | Risk Ratio | 95% CI | AIC | Weight | ||
1 | Chronic hypertension, gestational weight gain, maternal age, maternal education, maternal race | 1.38 | 0.92, 2.09 | 1.75 | 1.23, 2.50 | 552.56 | 0.43 |
2 | Chronic hypertension, maternal age, maternal education, maternal race, maternal height | 1.27 | 0.84, 1.92 | 1.46 | 1.04, 2.08 | 552.74 | 0.39 |
3 | Gestational weight gain, maternal age, maternal education, maternal race, pre-eclampsia/eclampsia | 1.38 | 0.91, 2.09 | 1.74 | 1.22, 2.48 | 555.12 | 0.12 |
4 | Maternal age, maternal education, maternal height, maternal race, pre-eclampsia/eclampsia | 1.29 | 0.85, 1.95 | 1.48 | 1.05, 2.10 | 556.43 | 0.06 |
AIC Averaged values | 1.33 | 0.86, 2.03 | 1.62 | 1.09, 2.39 |
Table 2.
Overweight vs. Normal | Obese vs. Normal | |||
---|---|---|---|---|
Adjustment Set | Risk Ratio | 95% CI | Risk Ratio | 95% CI |
1 | 1.41 | 0.93, 2.11 | 1.86 | 1.32, 2.62 |
2 | 1.35 | 0.92, 2.00 | 1.48 | 1.06, 2.06 |
3 | 1.38 | 0.91, 2.09 | 1.74 | 1.22, 2.48 |
4 | 1.33 | 0.89, 1.97 | 1.43 | 1.02, 2.01 |
Average | 1.37 | 0.92, 2.04 | 1.61 | 1.15, 2.27 |
The total sample sizes for models 1, 2, 3, and 4 are 538, 588, 517, and 556, respectively.
Table 3.
Overweight vs. Normal | Obese vs. Normal | |||||
---|---|---|---|---|---|---|
Adjustment Set | Risk Ratio | 95% Interval † | Risk Ratio | 95% Interval † | ||
Mean | Median | Mean | Median | |||
1 | 1.39 | 1.36 | 0.92, 2.02 | 1.78 | 1.76 | 1.28, 2.46 |
2 | 1.34 | 1.31 | 0.90, 1.93 | 1.45 | 1.42 | 1.07, 1.98 |
3 | 1.40 | 1.38 | 0.87, 2.08 | 1.76 | 1.73 | 1.18, 2.50 |
4 | 1.34 | 1.32 | 0.87, 1.96 | 1.43 | 1.41 | 1.01, 1.99 |
Average | 1.37 | 1.34 | 0.89, 2.01 | 1.60 | 1.57 | 1.07, 2.35 |
† 95% Intervals represent the 2.5th and 97.5th percentile of the parameter estimates obtained by bootstrap resampling.
Table 4.
Averaging Approach | Overweight | Obese |
---|---|---|
Akaike’s Information | 2.36 | 2.19 |
Inverse Variance | 2.22 | 1.97 |
Bootstrap resampling | 2.26 | 2.20 |
1 Upper limit divided by lower limit.
Gestational weight gain is included only in adjustment sets 1 and 3, while maternal height is included only in adjustment sets 2 and 4. Thus, it appears that adjustment for maternal height induces greater attenuation of the effect of weight on cesarean delivery compared to gestational weight gain. Further, adjustment sets 1 and 2 receive more of the overall weight compared to adjustment sets 3 and 4 using the AIC weighting method. In this example, weighting by information criteria and inverse variance produced similar results.
4. Discussion
We have suggested three approaches to average the results of confounder adjustment sets to account for uncertainty in model selection and to avoid investigator wish bias. We propose restricting candidate models to those supported by a directed acyclic graph, which allows readers to visualize and understand the causal structure and assumptions that the investigator identified before data analysis. A benefit is that researchers need not concern themselves with selection procedures such as change-in-estimate or backwards selection approaches. We preclude adjusting for causal intermediates, over-adjustment, or inducing confounding by collider stratification bias. These potential pitfalls that arise when using only prediction as the criterion for model selection have been noted by others [27,28].
Model selection continues to be a point of contention in epidemiology. Researchers are inconsistent in their choice of best practice [8,29]. Some methodologists have recommended adjustment for all baseline covariates (i.e., all variables that cannot be caused by the exposure of interest) that are known to have possible connections to the outcome [30]. However, this approach is often untenable. In fact, we attempted such an approach in this example and a full model did not converge. The use of DAGs to identify appropriate confounder adjustment has been well validated by theory [5,6] and simulation [31]. If a DAG is correctly specified, adjustment sets supported by it will provide unbiased estimates of the causal effect on disease risk of some exposure of interest. Of course, it is unlikely, or impossible, that any DAG is specified with complete certainty, and it is a strong assumption that a DAG will fully represent the data generating process. Further, missing, or unmeasured, confounders not accounted for in a DAG might suggest that no adjustment set available to the researcher will provide an unbiased estimate of the causal effect. However, DAGs, at the very least, provide the means to minimize confounder bias and plainly communicate structural assumptions to readers.
One approach presented uses information criteria to weigh the estimates from each adjustment set. This technique favors models that provide stronger prediction of the outcome. However, if there is a large volume of missing data for certain covariates, the AIC averaging approach will require ignoring a great deal of available information. The bootstrapping and inverse variance weighting approaches may be preferable because they do not have this restriction. Averaged estimates were nearly identical for all three averaging techniques in our example.
Alternative approaches for model selection and averaging certainly exist. In particular, Bayesian model averaging is a popular, and well validated, approach to averaging or selecting among multiple candidate models [7,22]. While a potential alternative, use of Bayesian approaches to model averaging requires the specification of a priori values for all covariates considered in the procedure. This can be very helpful when there is prior information available to the researcher. However, in the absence of highly informative prior information, Bayesian model averaging may be more complicated than is necessary.
As with any approach based on DAGs, our analyses are reliant on correct specification of the causal diagram. Further, our approach does not overcome limitations of misclassification, selection bias, or residual confounding. However, a priori knowledge of whether any specific covariates are subject to bias, such as misclassification, can help guide selection of models for consideration when conducting model averaging. In addition, investigators should be wary of averaging non-collapsible causal estimates such as odds ratios and hazard ratios, which will, in general, differ across alternative confounder adjustment sets [32].
5. Conclusions
Model selection is an inherent part of any epidemiological analysis; however, investigator wish bias may unduly influence the selection of results that are reported in epidemiology. DAGs are an indispensable tool for identifying unbiased estimates of causal effect due to some exposure of interest that are established before data analyses. DAGs do not provide a means of selecting one among multiple, sufficient adjustment sets. By averaging the models supported by a DAG, we take account of uncertainty in model selection by considering all models that we believe provide unbiased estimates of exposure effect.
Acknowledgments
We would like to thank Igor Burstyn, Robert Platt, and Daniel Westreich for helpful discussions that contributed to the development of this work.
The Pregnancy, Infection, and Nutrition Study is funded by The National Institute of Child Health and Human Development (National Institute of Health), National Institute of Diabetes and Digestive and Kidney Diseases, National Cancer Institute, Association of Schools of Public Health (Centers for Disease Control and Prevention), March of Dimes Birth Defects Foundation, Electric Power Research Institute, Wake Area Health Education Center in Raleigh, North Carolina, University of North Carolina at Chapel Hill Institute of Nutrition and Department of Nutrition (Clinical Nutrition Research Center), and National Institute of Health, General Clinical Research Centers program of the Division of Research Resources (grant #RR00046). JSK was supported by the Canada Research Chairs program.
Supplementary Material
1. AIC Model Averaging
The calculations information criteria weighting are provided in Burnham and Anderson (2004). We briefly summarize the components that contribute to model averaging.
The likelihood for each model is calculated as:
(1) |
where gi models I = 1,2…R receive a value relative to the model with the smallest AIC value, or AICmin. This, of course, gives the model with the smallest AIC a value of zero. Next, models are given weights based on a transformation of the likelihood into a relative probability via the following formula:
(2) |
The sum of individual model probabilities will equal 1. Thus, the relative weight a model receives will be dependent on the other candidate models. However, the actual likelihoods of each model are invariant to the other candidate models. The weighted variance for each parameter, θ, is calculated as:
(3) |
Finally, the model averaged θ is calculated as:
(4) |
2. Inverse Variance Weighting
We treat the mean as an inverse variance weighted average of θ obtained from each model, gi, as:
(5) |
In order to calculate the weighted variance, , we weight each model variance by the total sample size, n, of the model, such that:
(6) |
3. Software code for recreating model averaged results for bootstrap and AIC techniques
SAS code ********************************************************************************* ***** Model averaging via bootstrapping ***** hamrag@fellows.iarc.fr ***** Example from PIN study (UNC, Chapel Hill) ***** To request PIN data, please visit: ***** http://www.cpc.unc.edu/projects/pin/datause ********************************************************************************; ** Import data; procimport out=one datafile='YOUR Directory' dbms=csv replace; getnames=yes; run; ** Recode variables from data so there are 0 references; data one; set one; bmi = C_BMIIOM - 2; medu = edu - 1; height = C_INCHES - 65.04; *Center height at mean; if ind = 0 then induction = 0; else induction = 1; run; ********************************************* ***** Bootstrap data, 1000 replications *********************************************; procsurveyselect data=one out=pinboot seed = 280420141 method = urs samprate = 100 outhits rep = 1000; run; ***************************************************************** ***** Fit 4 minimally sufficient models, output data from each *****************************************************************; * Model 1: adjust: hypertension, gestational weight gain, maternal age/edu/race; ods output ParameterEstimates = m1out; procgenmod data=pinboot desc; by Replicate; class bmi(ref=first); model cesarean = bmi hyper C_WTGAIN mom_age medu race /dist=binomial link=log; run; * Model 2: adjust: hypertension, maternal age/edu/race/height; ods output ParameterEstimates = m2out; procgenmod data=pinboot desc; by Replicate; class bmi(ref=first); model cesarean = bmi hyper mom_age medu race height/dist=binomial link=log; run; * Model 3: adjust: gestational weight gain, maternal age/edu/race, eclampsia; ods output ParameterEstimates = m3out; procgenmod data=pinboot desc; by Replicate; class bmi(ref=first); model cesarean = bmi C_WTGAIN mom_age medu race eclamp/dist=binomial link=log; run; * Model 4: adjust: maternal age/edu/race/height, eclampsia; ods output ParameterEstimates = m4out; procgenmod data=pinboot desc; by Replicate; class bmi(ref=first); model cesarean = bmi mom_age medu race height eclamp/dist=binomial link=log; run; ********************************************** ****Extract BMI values from each dataset ****First, for overweight vs normal **********************************************; data m1over (keep = Estimate Replicate model); set m1out; if Parameter = 'bmi' AND Level1 = 1; model = 1; run; data m2over (keep = Estimate Replicate model); set m2out; if Parameter = 'bmi' AND Level1 = 1; model = 2; run; data m3over (keep = Estimate Replicate model); set m3out; if Parameter = 'bmi' AND Level1 = 1; model = 3; run; data m4over (keep = Estimate Replicate model); set m4out; if Parameter = 'bmi' AND Level1 = 1; model = 4; run; **** Pool datasets and summarize estimate; data over; set m1over m2over m3over m4over; exp = exp(Estimate); run; *summary of bootstrap estimates by adjustment set; procunivariate data=over; by model; var exp; output out= over1a mean=mean pctlpts = 2.5, 50, 97.5 pctlpre=ci; run; *Model average of overweight versus normal weight; procunivariate data=over; var exp; output out= over1b mean=mean pctlpts = 2.5, 50, 97.5 pctlpre=ci; run; ********************************************** ** Repeat above for obese versus normal *********************************************; data m1obese (keep = Estimate Replicate model); set m1out; if Parameter = 'bmi' AND Level1 = 2; model = 1; run; data m2obese (keep = Estimate Replicate model); set m2out; if Parameter = 'bmi' AND Level1 = 2; model = 2; run; data m3obese (keep = Estimate Replicate model); set m3out; if Parameter = 'bmi' AND Level1 = 2; model = 3; run; data m4obese (keep = Estimate Replicate model); set m4out; if Parameter = 'bmi' AND Level1 = 2; model = 4; run; **** Pool datasets and summarize estimate; data obese; set m1obese m2obese m3obese m4obese; exp = exp(Estimate); run; *summary of bootstrap estimates by adjustment set; procunivariate data=obese; by model; var exp; output out= obese1a mean=mean pctlpts = 2.5, 50, 97.5 pctlpre=ci; run; *Model average of overweight versus normal weight; procunivariate data=obese; var exp; output out= obese1b mean=mean pctlpts = 2.5, 50, 97.5 pctlpre=ci; run; *end of file; R code ########################################################################### ##### Multi-model inference with AIC weighting ########################################################################### ## Load relevant libraries and set working directory library(Epi) library(foreign) library(MuMIn) library(boot) setwd('Your directory') ## load and summarize data PIN <- read.csv('PIN.csv',header=T) str(PIN) ## Re-code BMI and Education so there is a zero referent ## also center height and record induction PIN$BMI <- PIN$C_BMIIOM - 2 PIN$m_edu <- PIN$edu - 1 PIN$height <- PIN$C_INCHES - 65.04 # center height PIN$induction <- as.numeric(ifelse(PIN$ind==0,0,1)) # categorize induction into 0,1 #################################################### ## Average over all minimally sufficient adjustment sets #################################################### ## restrict data to exclude missings. Necessary for averaging with AIC! keep <- c('cesarean','BMI','hyper','C_WTGAIN','mom_age','m_edu', 'race','height','eclamp') PIN1 <- na.omit(PIN[keep]) attach(PIN1) ################################################################# ## NOTE: some models run with reduced adjustment sets to obtain ## starting values that help with model convergence ################################################################# ## model 1: hypertension, gestational weight gain, maternal age/edu/race m1a <- glm(cesarean ~ factor(BMI) + hyper + C_WTGAIN + mom_age + m_edu + race, family=binomial(link='log')) m1 <- glm(cesarean ~ factor(BMI) + hyper + C_WTGAIN + mom_age + m_edu + race, family=binomial(link='log')) summary(m1) ci.exp(m1) ## model 2: hypertension, maternal age/edu/race/height m2a <- glm(cesarean ~ factor(BMI) + hyper + mom_age + m_edu + race, family=binomial(link='log')) m2 <- glm(cesarean ~ factor(BMI) + hyper + mom_age + m_edu + race + height, family=binomial(link='log'), start=c(coef(m2a),0)) summary(m2) ci.exp(m2) ## model 3: gestational weight gain, maternal age/edu/race, eclampsia m3 <- glm(cesarean ~ factor(BMI) + C_WTGAIN + mom_age + m_edu + race + eclamp, family=binomial(link='log')) summary(m3) ci.exp(m3) ## model 4: maternal age/edu/race/height, eclampsia m4a <- glm(cesarean ~ factor(BMI) + mom_age + m_edu + race + eclamp, family=binomial(link='log')) m4 <- glm(cesarean ~ factor(BMI) + mom_age + m_edu + race + eclamp + height, family=binomial(link='log'), start=c(coef(m4a),0)) summary(m4) ci.exp(m4) ## Average the results of the four models above models <- list(m1,m2,m3,m4) AIC_avg <- model.avg(models, rank=AIC, cumsum(weight)<=0.95) summary(AIC_avg) confint(AIC_avg) #end of file
Author Contributions
Ghassan B. Hamra conceived the idea for this work, conducted all analyses, and drafted the manuscript. Both Jay S. Kaufman and Anjel Vahratian contributed to the writing and development of the manuscript as well as interpretation of the results.
Conflicts of Interest
The authors declare no conflict of interest.
References
- 1.Robins J.M., Greenland S. The role of model selection in causal inference from nonexperimental data. Am. J. Epidemiol. 1986;123:392–402. doi: 10.1093/oxfordjournals.aje.a114254. [DOI] [PubMed] [Google Scholar]
- 2.Wynder E.L., Higgins I.T., Harris R.E. The wish bias. J. Clin. Epidemiol. 1990;43:619–621. doi: 10.1016/0895-4356(90)90167-n. [DOI] [PubMed] [Google Scholar]
- 3.Cope M.B., Allison D.B. White hat bias: Examples of its presence in obesity research and a call for renewed commitment to faithfulness in research reporting. Int. J. Obes. 2010;34:84–88. doi: 10.1038/ijo.2009.239. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Cope M.B., Allison D.B. White hat bias: A threat to the integrity of scientific reporting. Acta Paediatr. 2010;99:1615–1617. doi: 10.1111/j.1651-2227.2010.02006.x. [DOI] [PubMed] [Google Scholar]
- 5.Greenland S., Pearl J., Robins J.M. Causal diagrams for epidemiologic research. Epidemiology. 1999;10:37–48. doi: 10.1097/00001648-199901000-00008. [DOI] [PubMed] [Google Scholar]
- 6.Pearl J. Causality: Models, Reasoning, and Inference. Cambridge University Press; New York, NY, USA: 2000. [Google Scholar]
- 7.Raftery A.E. Bayesian model selection in social research. Sociol. Methodol. 1995;25:111–163. doi: 10.2307/271063. [DOI] [Google Scholar]
- 8.Viallefont V., Raftery A.E., Richardson S. Variable selection and Bayesian model averaging in case-control studies. Stat. Med. 2001;20:3215–3230. doi: 10.1002/sim.976. [DOI] [PubMed] [Google Scholar]
- 9.Burnham K.P., Anderson D.R. Model Selection and Multimodel Inference: A Practical Information-theoretic Approach. 2nd ed. Springer; New York, NY, USA: 2002. [Google Scholar]
- 10.VanderWeele T.J., Robins J.M. Four types of effect modification: A classification based on directed acyclic graphs. Epidemiology. 2007;18:561–568. doi: 10.1097/EDE.0b013e318127181b. [DOI] [PubMed] [Google Scholar]
- 11.Shrier I., Platt R.W. Reducing bias through directed acyclic graphs. BMC Med. Res. Methodol. 2008;8:70. doi: 10.1186/1471-2288-8-70. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Lash T.L., Fox M.P., MacLehose R.F., Maldonado G., McCandless L.C., Greenland S. Good practices for quantitative bias analysis. Int. J. Epidemiol. 2014;43:1969–1985. doi: 10.1093/ije/dyu149. [DOI] [PubMed] [Google Scholar]
- 13.Schisterman E.F., Cole S.R., Platt R.W. Overadjustment bias and unnecessary adjustment in epidemiologic studies. Epidemiology. 2009;20:488–495. doi: 10.1097/EDE.0b013e3181a819a1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Naimi A.I., Cole S.R., Westreich D.J., Richardson D.B. A comparison of methods to estimate the hazard ratio under conditions of time-varying confounding and nonpositivity. Epidemiology. 2011;22:718–723. doi: 10.1097/EDE.0b013e31822549e8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Cole S.R., Frangakis C.E. The consistency statement in causal inference: A definition or an assumption? Epidemiology. 2009;20:3–5. doi: 10.1097/EDE.0b013e31818ef366. [DOI] [PubMed] [Google Scholar]
- 16.Sobel M.E. What do randomized studies of housing mobility demonstrate? Causal inference in the face of interference. J. Am. Stat. Assoc. 2006;101:1398–1407. doi: 10.1198/016214506000000636. [DOI] [Google Scholar]
- 17.Greenland S. Randomization, statistics, and causal inference. Epidemiology. 1990;1:421–429. doi: 10.1097/00001648-199011000-00003. [DOI] [PubMed] [Google Scholar]
- 18.Cole S.R., Platt R.W., Schisterman E.F., Chu H., Westreich D., Richardson D., Poole C. Illustrating bias due to conditioning on a collider. Int. J. Epidemiol. 2010;39:417–420. doi: 10.1093/ije/dyp334. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Savitz D.A., Dole N., Williams J., Thorp J.M., McDonald T., Carter A.C., Eucker B. Determinants of participation in an epidemiological study of preterm delivery. Paediatr. Perinat. Epidemiol. 1999;13:114–125. doi: 10.1046/j.1365-3016.1999.00156.x. [DOI] [PubMed] [Google Scholar]
- 20.Vahratian A., Siega-Riz A.M., Savitz D.A., Zhang J. Maternal pre-pregnancy overweight and obesity and the risk of cesarean delivery in nulliparous women. Ann. Epidemiol. 2005;15:467–474. doi: 10.1016/j.annepidem.2005.02.005. [DOI] [PubMed] [Google Scholar]
- 21.Buckland S.T., Burnham K.P., Augustin N.H. Model selection: An integral part of inference. Biometrics. 1997;53:603–618. doi: 10.2307/2533961. [DOI] [Google Scholar]
- 22.Hoeting J.A., Madigan D., Raftery A.E., Volinsky C.T. Bayesian model averaging: A tutorial. Statist. Sci. 1999;14:382–401. [Google Scholar]
- 23.Rothman K.J., Greenland S., Lash T.L. Modern Epidemiology. 3rd ed. Lippincott Williams & Wilkins; Philadelphia, PA, USA: 2008. [Google Scholar]
- 24.Higgins J.P.T., Green S., editors. Cochrane Handbook for Systematic Reviews of Interventions. Wiley-Blackwell; Hoboken, NJ, USA: 2008. Cochrane Collaboration. [Google Scholar]
- 25.Efron B., Tibshirani R. An Introduction to the Bootstrap. Chapman & Hall; New York, NY, USA: CRC Press; Boca Raton, FL, USA: 1993. [Google Scholar]
- 26.Poole C. Low P-values or narrow confidence intervals: Which are more durable? Epidemiology. 2001;12:291–294. doi: 10.1097/00001648-200105000-00005. [DOI] [PubMed] [Google Scholar]
- 27.Dominici F., Wang C., Crainiceanu C., Parmigiani G. Model selection and health effect estimation in environmental epidemiology. Epidemiology. 2008;19:558–560. doi: 10.1097/EDE.0b013e31817307dc. [DOI] [PubMed] [Google Scholar]
- 28.Richardson D.B., Cole S.R. Model averaging in the analysis of leukemia mortality among Japanese A-bomb survivors. Radiat. Environ. Biophys. 2012;51:93–95. doi: 10.1007/s00411-011-0395-4. [DOI] [PubMed] [Google Scholar]
- 29.Greenland S. Invited commentary: Variable selection versus shrinkage in the control of multiple confounders. Am. J. Epidemiol. 2008;167:523–529. doi: 10.1093/aje/kwm355. [DOI] [PubMed] [Google Scholar]
- 30.Rubin D.B. The design versus the analysis of observational studies for causal effects: Parallels with the design of randomized trials. Stat. Med. 2007;26:20–36. doi: 10.1002/sim.2739. [DOI] [PubMed] [Google Scholar]
- 31.Brookhart M.A., Schneeweiss S., Rothman K.J., Glynn R.J., Avorn J., Sturmer T. Variable selection for propensity score models. Am. J. Epidemiol. 2006;163:1149–1156. doi: 10.1093/aje/kwj149. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Greenland S., Robins J.M., Pearl J. Confounding and collapsibility in causal inference. Stat. Sci. 1999;14:29–46. [Google Scholar]