1 / 35

EPI 5344: Survival Analysis in Epidemiology Confounding and Effect Modification March 25, 2014

EPI 5344: Survival Analysis in Epidemiology Confounding and Effect Modification March 25, 2014. Dr. N. Birkett, Department of Epidemiology & Community Medicine, University of Ottawa. Objectives. Review confounding and effect modification (EM) Graphical view of confounding and EM

yamka
Download Presentation

EPI 5344: Survival Analysis in Epidemiology Confounding and Effect Modification March 25, 2014

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EPI 5344:Survival Analysis in EpidemiologyConfounding and Effect ModificationMarch 25, 2014 Dr. N. Birkett, Department of Epidemiology & Community Medicine, University of Ottawa

  2. Objectives • Review confounding and effect modification (EM) • Graphical view of confounding and EM • Linear regression model for confounding/EM • How to detect/adjust for confounding in Cox modeling • Effect modification and Cox modeling.

  3. Introduction (1) • In etiological study, interest is on effect of ‘X’ on ‘Y’ • Suppose we have a third variable ‘C’ which explains some of the effect of ‘X’: C X Y • Confounding.

  4. Introduction (2) • A common definition is based on ‘change in estimate of coefficient’ • Estimate the crude OR/RR/etc. (RRcrude) • Estimate OR/RR after adjusting for ‘C’ (RRadj) • If RRadj differs from RRcrude by ‘enough to matter’, we have confounding. • Usually look for 10%+ in RR (or ln(RR)):

  5. Introduction (3) • There is controversy over this definition of confounding. • Pearl and others have shown that, in some situations, an unadjusted estimate for RR can be more valid than an adjusted one. • Argues against using the ‘change in estimate’ method. • This course isn’t the place to explore the debate. • We will use the ‘change in estimate’ approach.

  6. Introduction (4) • Effect Modification • Main interest is relationship of ‘X’ to ‘Y’ • What if a third variable ‘modifies’ that relationship so that it is very different in two or more groups? • Example • RRcrude = 1.7 (1.0-2.4) • RRmale =15.6 (11.0-22.0) **** • RRfemale = 0.4 (0.1-0.6) **** • What is the effect of ‘X’ on ‘Y’?

  7. Introduction (5) • IT DEPENDS! • In men: risk is much higher • In women: risk is much lower • Effect Modification occurs when a third variable defines groups where the relationship differs ‘enough to matter’ • For OR/RR/etc., usually want • Can also look for statistically significant differences between the groups • Tests have low power

  8. Introduction (6) • How do we know if we have either of confounding or effect modification? • There are rules-of-thumb • These are not ‘truth’. • Answer depends on the impact of the results • Does the modification of the OR/RR by a third factor introduce enough difference ‘to matter’? • If so, then confounding/EM • If not, then no confounding/EM

  9. Introduction (7) • This is an empirical/practical approach • Requires knowledge of the scientific field under study • Impact on clinical/scientific/policy decisions • if the HR is 10.0, then an adjustment to 9.0 or 11.0 won’t matter • Some other views • Confounding applies in the ‘population’, not your study. Always matters • Causal modeling • Impact on understanding causal paths as opposed to making practical decisions.

  10. Confounding (1) • Consider this research situation

  11. Age vs. SBP SBP All subjects combined age Now, look at the Rx and control groups separately

  12. Age vs. SBP Control SBP Rx Δ true age Treatment effect is the distance between the lines • It is the same at every age

  13. Assume Rx group is older Control Δ observed Rx Δ true

  14. Assume control group is older Control Δ observed Rx Δ true

  15. Assume groups are same age Control Δ observed Rx Δ true

  16. Assume groups are same age Control Δ observed Rx Δ true

  17. Confounding (2) • We can adjust for confounding by making the age in the two groups ‘the same’ • Design • Matching • RCT • Restriction • Analysis • Graphs are hard to work with, so let’s switch to regression models. • I’ll use linear regression for now

  18. Confounding (3) Cont: yi = B0,cont + B1(age)i Rx: yi = B0,Rx + B1(age)i Note: the slopes are assumed to be the same True effect confounding effect

  19. Confounding (4) True effect confounding effect Confounding = 0 iff Β1=0 OR mean ages are the same

  20. Confounding (5) • How to estimate the Beta’s? • Could do stratified regression (in each treatment group) • Limits your options • Instead, let’s create one regression model which includes both stratified models as sub-models.

  21. Rx Control 0

  22. Confounding (6) • Define zi = 0 if in control group = 1 if in Rx group which can be written as:

  23. Confounding (7) • β2 = adjusted effect of Rx • Can use this model to test hypotheses about adjusted effect, get 95% CI’s, etc.

  24. Confounding (8) • To check for confounding, fit this model with and without ‘age’. • Compare the change in β2from model without age to the model with age • Look for 10% change • Note that this is equivalent to previous ‘rule’ using the logs of the RR/OR/etc.

  25. Now, consider this situation EFFECT MODIFICATION Control SBP Rx age The treatment effect DEPENDS on the age of the subject • Small for low age • Large for high age

  26. Effect Modification (1) • Can also put this into regression models • Key is to note that the slopes aren’t the same. • As before, define: zi = 0 if in control group = 1 if in Rx group

  27. Effect Modification (2)

  28. Effect Modification (2) which can be written as: β3≠0  Effect Modification

  29. Use in Cox • Linear regression model is called: • Parallel line analysis • Extends easily to Cox models. • Replace ‘y’ by ‘ln(HR)’ • Remember, no intercept for the Cox model (contained in h0(t)) If there is no EM, we get: Effect of ‘z’ adjusted for ‘x’ Compare to model with only ‘z’ to check confounding

  30. SAS code (1) TO CHECK FOR EM: proc phreg data=njb1; class z/param=ref ref=first; model time*cens(0)=x z x*z; run; Look at the ‘Beta’ for ‘x*z’ to check for EM.

  31. SAS code (2) If there is no EM, run two more models to check for confounding. ADJUSTED MODEL proc phreg data=njb1; class z/param=ref ref=first; model time*cens(0)=x z; run; CRUDE MODEL proc phreg data=njb1; class z/param=ref ref=first; model time*cens(0)=z; run; Compare the ‘Beta’ for ‘z’ in these two models

  32. SAS code (3) • What if ‘z’ has more than 2 levels? • Can use the same code • Effect Modification • Use the likelihood ratio test (-2Δlog(L)) • Available directly in SAS output • Confounding • Need to consider possible confounding for each level of ‘z’ • Overall decision to adjust for ‘x’ depends on presence of any confounding.

  33. Rx effect when there is EM (1) • Our Cox model is: • What is the effect of ‘z’ on the HR? • If there were no interaction, can just use exp(β2) • But, this is not appropriate with interaction:

  34. Rx effect when there is EM (2) • There is no single treatment effect. • Depends on value of EM variable • Need to present effect estimates in a graph or table (or formula)

More Related