A practical and example filled tour of simple and multiple regression techniques (linear, logistic, and Cox PH) for estimation, adjustment and prediction.

Loading...

From the course by Johns Hopkins University

Statistical Reasoning for Public Health 2: Regression Methods

75 ratings

A practical and example filled tour of simple and multiple regression techniques (linear, logistic, and Cox PH) for estimation, adjustment and prediction.

From the lesson

Module 2B: Effect Modification (Interaction

Effect modification (Interaction), unlike confounding, is a phenomenon of "nature" and cannot be controlled by study design choice. However, it can be investigated in a manner similar to that of confounding. This set of lectures will define and give examples of effect modification, and compare and contrast it with confounding.

- John McGready, PhD, MSAssociate Scientist, Biostatistics

Bloomberg School of Public Health

So in this next lecture set, Lecture 5, we're going to talk

Â about a phenomenon called effect modification, or interaction.

Â Which like confounding, involves interpreting an outcome exposure, or

Â two variable relationship, with regards to another variable behind the scenes.

Â But, the type of effect on this relationship that we are looking for

Â is different than when we were dealing with confounding.

Â So in this lecture set, we will define this concept of effect modification,

Â compare and contract it to confounding, and give multiple examples of how to

Â investigate effect modification if it's part of the research process.

Â And what conclusions to make when you look at the results of the investigation.

Â So in this first section, we're going to start with the introduction to effect

Â modification and give two examples.

Â In section B, we'll follow up with more examples.

Â And we'll reconnect in section C to reaffirm our

Â discussion about the differences between confounding and effect modification.

Â So hopefully, by the end of this lecture section,

Â you'll have, you'll be able to define the concept of effect modification, and

Â explain how it is different than confounding.

Â And, you'll also gain exposure to two examples of

Â investigating effect modification as part of a research question.

Â So we've talked in lecture 4 about confounding, and the idea of

Â confounding is the nature of association can differ substantially in magnitude.

Â And even reverse direction sometimes when we look at

Â it on the whole versus adjusting it for the potential influence by

Â other factors that are related to both things we're associating.

Â So this can occur, we know, confounding can occur when the association,

Â we generally say an exposure x and an outcome y,

Â is confounded by another variable or set of variables.

Â In that case the overall association we look at ignoring those other

Â variables versus the overall association we get after adjusting for

Â those other confounding variables will differ.

Â In fact modification has to do not with the relationship between a third variable

Â and it's relationship to the two variables we're into, interested in associating.

Â But it's relationship to the relationship between those two variables.

Â So, if that modification occurs when the nature of the association can differ and

Â sometimes substantially.

Â A different sub-populations from an overall population.

Â So for example, an association can differ for males and females.

Â A drug could work for females and have harmful effects for males.

Â A association between blood pressure and physical activity may differ by age group.

Â So when this occurs, when association between an exposure x and

Â an outcome y depends on at least one other variable.

Â Even if this other variable is not directly related to either x or

Â y then we have a phenomena called effect modification.

Â So just diagrammatically this occurs when the relationship between y and

Â x depends of the value of a third variable z.

Â So notice this picture I've drawn, I've drawn an arrow between Z and

Â a line connecting X and Y to indicate that Z effects the association between Y and

Â X if it's an effect modifier.

Â If we ignore this effect modificier, fier to look for it we,

Â this can result in estimating one overall outcome exposure relationship either

Â unadjusted or adjusted.

Â Comparing everyone in one number when we

Â really need to estimate separate outcome exposure relationships for

Â different values of our Effect Modified to tell the story of the phenomena.

Â So some examples, of results, for Effect Modifications.

Â Suppose we're looking at, comorbidities from a disease and,

Â surgery works much better.

Â On reducing these than drug therapy among younger patients, but among

Â older patients surgery is notable worse than drug therapy for older patients.

Â So there's not one clear overall association between the outcome and

Â the type of treatment people get.

Â We wouldn't want to estimate one overall association between surgery compared to

Â drug therapy for everyone together.

Â If we saw evidence in our data that the relationship between the outcome of

Â surgery was different for younger patients than it was for older patients.

Â Another example came into light recently when we were gearing up for

Â a potential outbreak of the swine flu, and vaccines were being tested and prepared.

Â And it was found that the vaccine worked provided immunity for those who got it.

Â But in order to get the same immunity women needed a larger dose.

Â About twice the amount of the same vaccine that men did to get the same effect.

Â So if we had ignored that we may have ended up.

Â Under dosing women for example.

Â If we gave the same doses to everyone and

Â that would effect their immunity versus that of males.

Â So just in the Venn diagram here's my attempt at picture of effect modification.

Â Here Z in fact impacts for each level of Z.

Â This potential effect modifier, we need to draw a separate picture of

Â the association between Y and X because it depends on this other variable, Z.

Â So if Z is two levels per binary it might be males or females.

Â If Z was ethnicity there might be three or four different potential groups that we,

Â and we'd have to compare the association between Y and X across those four.

Â To see if at least some of the associations were different than others,

Â if we were looking for whether the association between Y and

Â X was modified by ethnicity.

Â So what's the solution for effect modification?

Â Well, it's actually not a problem per se.

Â But in order to assess whether there is effect modification,

Â one must look at Y/X associations.

Â Separately for each level of the potential effect modifier and

Â decide whether at least some of the associations differ.

Â So this is can be done by strategy analysis, separating our

Â data into different subgroups based on levels of the variable Z.

Â And analyzing the YZ association separately and comparing them somehow.

Â Or we'll see when we get into the realm of multiple regression we can do

Â this systematically within the context of models we're using analyze data.

Â Effect modification is a, is a function of nature or circumstance or setting.

Â It's not a function of study design per se and

Â as such cannot be controlled by study design.

Â Whereas with confounding, we have ways to minimize the potential for confounding.

Â Randomization is the best way.

Â And there's other methods, as well.

Â However, we cannot do that.

Â We, we cannot eliminate the potential for effect modification by anything we

Â do in the studies on randomization while taking care of that.

Â And we'll show an example of what I mean shortly.

Â However if you wanted to be able to design a study with enough power and precision to

Â estimate separate Y/X relationships with reasonable precision for

Â differing levels of Z as part of your main research ideas.

Â You may want to design the study to be able to estimate these with some

Â desired precision.

Â So for example, if you wanted to compare the association between

Â pulmonary functioning and exercise level separately for smokers and nonsmokers.

Â You may want to design a study and sample in a way that you get enough smokers and

Â enough nonsmokers from your overall population of interest to be able to

Â detect a difference in those associations at some level.

Â So just a few things confounding is not necessary for

Â effect modification to occur, effect modification is not necessary for

Â confounding to occur these do not depend on each other.

Â Some studies will yield outcome exposure relationships that

Â are neither confounded or modified.

Â Some will, studies,

Â some studies will yield Y X relationships that are confounded but not modified.

Â some that are not founded but are modified, and

Â sometimes they'll occur together.

Â But we'll see, with some examples, that if this is the case interaction or

Â effect modification trumps confounding.

Â In other words, we won't want to report one overall association between

Â the outcome and exposure adjusted for other variables.

Â We'll want to split that adjusted association out for

Â other levels of our effect modifier.

Â So to get the ball rolling with the first example lets look at

Â the results from the PBC trial we looked at before in staff reasoning one and two.

Â So this is the famous data set from the Mayo clinic where we had 312 patients with

Â primary biliary cirrhosis.

Â The liver they were randomized to either receive the drug DPCA or a placebo.

Â And the main research question of interest was is, if there was a difference

Â in the risk of death during the follow-up period for the two treatment groups.

Â So the, the study was designed to detect and see if there was a.

Â The difference in or,

Â in fact reduced mortality for those who receive the drug versus the placebo.

Â And the treatment assignment was randomized so what does this mean about

Â the potential for example for confounding by patient sex?

Â Well we'll explore this in detail in the next slide but hopefully your knee

Â jerk reaction is that should minimize the potential for confounding.

Â What does that mean about the possibility of an interaction between treatment and

Â se, and sex?

Â Or effect modification by sex?

Â Well, like I said, study design has no impact on the, reducing or

Â increasing the potential for effect modification.

Â So the fact that this is randomized doesn't tell us anything about that.

Â So we're going to have to, if we want to investigate it,

Â we're going to have to do so, despite the fact that this was a randomized study.

Â So, let's just go for the overall analysis.

Â We saw that the overall analysis was such that the relative risk of death for

Â patients on DPCA compared to patients on placebo in the study was 1.06.

Â Patients on the drug who had a slightly elevated mortality.

Â But there was, after accounting for sampling variability, there was no

Â clear conclusion that mortality was increased or decreased by the drug.

Â So the end result, and this was a,

Â a reasonably powered study to detect an interesting reduction in mortality.

Â And the result was that there was no association found between

Â mortality and the drug.

Â So could this death and treatment association been confounded by sex?

Â Well, the necessary conditions for that are the outcome of death

Â and the predictor of treatment would have to both be related to sex.

Â So, so it's very possible that sex was related to death.

Â Maybe males were more likely to die with this disease than females or vice versa.

Â And there's nothing we can do to change that association.

Â But because, because the treatment was randomized that

Â should even out the sex distribution between the two groups.

Â And there shouldn't be any differential in the sex distribution between the DPCA and

Â placebo groups.

Â So these are the necessary conditions but hopefully with randomization

Â by study design we would remove this link here.

Â Remove the association between.

Â The exposure and this third variable, sex.

Â So let's just go over this.

Â The crude relative risk of death for patients was, we said, was 1.06.

Â It was not statistically significant.

Â This was based on the, comparing the overall proportion who died in

Â the DPCA group to the proportion dying in the placebo group.

Â So if we went and compared everybody in the DPCA group, whether they died or

Â not, to everybody in the placebo group, whether they died or

Â not, to get the relative risk.

Â Or incidence rate ratio this comparison should not be impacted or distorted or,

Â or negated by a differing distribution of males and females in the two groups.

Â And, in fact, in the study,

Â the majority of enrollees were female, about 70% versus 30% male, and

Â that was similar distribution in the DPCA and placebo groups.

Â So that overall association should not be distorted by a differing distribution.

Â And, in fact, when, if you were to compute the sex-adjusted relative risk,

Â it was almost equivalent.

Â To the unadjusted relative risk or

Â incidence rate ratio, with the, almost exact confidence interval.

Â So thus far, as we expect, DPCA was not associated with better or worse

Â patient survival, and as we expect this was not confounded by sex distribution.

Â And hopefully it was not confounded by any other

Â variable because of the randomization process.

Â However, as a researcher I might be curious.

Â Well, maybe I'm missing something if I analyze every one together,

Â even if I adjust it and I didn't see any change.

Â There was no confounding.

Â That doesn't necessarily mean that the overall relationship between mortality and

Â DPCA is the same for males and females.

Â So I might be thinking potentially could the treatment effect mortality differently

Â for men and women.

Â And this question is really about a possible interaction between sex and

Â treatment or in or language of effect modification sex.

Â Modifying the effect of treatment.

Â Well, at this point, we can't answer this question because we only have estimates of

Â one overall association for everyone, unadjusted and adjusted for sex.

Â But that adjusted comparison compares eh,

Â it holds for the comparison of males to males and females to females.

Â And it's the same number, so

Â long that the sex we're comparing is the same in the two groups.

Â So what we're going to have to do if we want to investigate whether or

Â not the relationship between depth.

Â And, and the treatment is modified by sexes.

Â We're going to actually have to look at separate associations between

Â mortality and treatment.

Â Though if we look at the incidence rate ratio,

Â I short handed here by calling it a relative risk.

Â But I'll put an I here to indicate instance rate ratios since this did

Â involve differential follow up time for females.

Â The incidence rate ratio is one.

Â No difference between the risk and

Â the sample for the drug and the DPCA group.

Â And the results is not statistically signficant.

Â For males, slighty higher association in the sample, but

Â if you look at the confidence intervals between that and females.

Â There's a lot of overlap.

Â So the potential tape simply by looking at

Â the estimates is that there was no impact of the drug on mortality.

Â And for males actually the drug increased mortality.

Â So even though at the estimation level it might look like there'

Â some difference in terms of the conclusions we did make about the drug.

Â That wouldn't change in that it's not a thing to give to these patients.

Â Shrink but

Â when you look at the uncertainty in these two estimates there's a lot of overlap.

Â So if we were to actually and we'll see how to do this in Regression.

Â But we could formally test, whether these estimated associations are different and

Â if we did so we would not find a difference.

Â So, I'm going to make a decision here and say we've investigated, but

Â we found no evidence of effect modification by sex.

Â So we weren't missing anything when we

Â compared all males and females together in our overall.

Â Association estimates by before.

Â But we want to have been able to answer the question of whether, or

Â was effect modification, unless we looked at the separate estimates by sex.

Â So this just summarizes what we saw throughout the different levels of

Â the analysis.

Â So if we just stopped here.

Â We couldn't assess, if we only estimated the crude association we

Â couldn't assess either confounding or effect modification.

Â If we went and

Â adjusted and looked at the adjusted estimate we could assess confounding.

Â But if we just stop there we'd have no insight into effect modification by sex.

Â And it's only if we took it to here and looked at separate outcome

Â exposure relationships separately by sex that we could answer that question.

Â About a differential association between mortality and treatment by sex.

Â So again, conclusions based on what we

Â saw here are essentially no effect to modification and no confounding,

Â no confounding by sex because this trial was randomized, so we expected that.

Â And then upon further no effect modification.

Â Let's look at another example just to keep this ball rolling think about this.

Â And we'll do, like I say, several more examples next section.

Â But here's an interesting data set.

Â Its a small data set.

Â Which when, you know, will give us power issues.

Â But, it's kind of fun to look at and explore nevertheless.

Â This is data on elevation and

Â percentage of dead or badly damaged trees, from 64 Appalachian sites in US,

Â the Appalachian region in the US runs along the East Coast from North to South.

Â And this study was not designed to look at different associations by region,

Â North or South, as only eight of the 64 sites are in Southern sites.

Â And the study design is observational because our outcome of interest.

Â Is the percentage of dead or badly damaged trees by characteristics of the sites, and

Â we can't randomize trees to sites.

Â So one of the things they measured.

Â As part of the data set with the elevation of the site.

Â And here's an overall scatterplot.

Â This outcome was not a binary outcome.

Â For each of, the unit of observation here was a site.

Â And on the site they actually documented all the trees and

Â took the percentage on the site that were dead or badly damaged.

Â So, as measured by site.

Â This is a percentage that runs potentially from zero to 100.

Â So here's what we can see in this picture.

Â This kind of a tough looking scatter plot to figure out what's going on.

Â Many of us may see different things the more we look at it.

Â So the first thing we might do just because we've got a continuous outcome and

Â a continuous predictor.

Â We may consider just estimating overall regression association to

Â get the unadjusted association.

Â Between tree damage and elevation and if we do and

Â you probably may have envisioned this given the spread of the points.

Â But the slope comes in slightly positive and not statistically significant.

Â So this estimates that there's a .01% increase.

Â But it's not statistically significant in the percent of trees damaged per

Â meter increase in elevation.

Â So actually that's not as small of an effect as it

Â sounds because it's per meter, but it's not statistically significant.

Â However if you actually one of the things you can do with the computer is we

Â have another variable stored in this data.

Â Which is the region it's from, and if you actually label each of these points.

Â With the region from which the points come from, it,

Â it's actually kind of interesting.

Â What do you notice, the, the, this cluster of points over here and

Â the majority are from northern sites.

Â This is sort of what's going on in northern sites, and

Â the majority of the southern sites.

Â I'm not circling them all perfectly, are down here.

Â That's a better way to circle it.

Â So let's think about this.

Â The southern region trees tend to be at higher elevation than the northern.

Â They also tend to have less damage.

Â If you go back and look at that scatter plot.

Â So it actually looked like I should actually say damage was not related to

Â elevation when we first accessed it.

Â But damage region is related to damage and region is related to elevation.

Â So the, the tools are in place here, if we have damage and elevation and region.

Â The tools are in place for

Â confounding because region is related to both these things.

Â So let's, let's first consider this as an issue.

Â So if we go back and we actually estimate an adjusted slope, adjusted for regions.

Â We estimate a common association between damage and elevation for the northern and

Â southern regions.

Â But as we'll see when we get into multiple regression,

Â these have different intercepts.

Â Such that the vertical distance between these lines represents the overall

Â distance in any elevation for damage in northern sites, and

Â damage in southern sites.

Â But these lines are parallel and what do you notice about these?

Â Well, they're both now increasing.

Â This suggests once we adjust for

Â the regional differences in damage and elevation.

Â We get an overall positive statistically

Â significant association between damage and elevation.

Â So it may look upon first pass, and certainly this gets at

Â the picture better than fitting this overall crude association here.

Â But it may look like our overall.

Â Association had been confounded, by region and

Â it certainly happen because that fact that southern regions had higher elevation.

Â And were at, had lower damage was, was pulling down the overall association.

Â And when we adjusted for that we got, A's more, a,

Â a positive association in both the regions.

Â But the question I have, or the question I might want to investigate is well this,

Â this looks like a reasonable fit to these points labeled North.

Â But down here I'm,

Â I'm a little wondering if we should be fitting a positive association.

Â Admittedly we only have a few points but whether we should be fitting a positive

Â association between percent trees damaged in elevation for southern sites as well.

Â So I want to take this one step further.

Â We could stop here, and say there was evidence of confounding and

Â when we adjusted we found evidence of a positive association.

Â As opposed to the null association we found ignoring region, but I'm curious.

Â I want to go ahead and estimate separate relationships between

Â percent of trees damaged and elevation by region and see what we get.

Â And if we do that, the slope for northern sites turns out to be more positive

Â in magnitude than it was when we combined both sites in the adjusted estimate.

Â And the estimate slope for southern sites, between damage and

Â elevation, turns out to be negative.

Â And so I'll put the numbers on top here.

Â So here's the unadjusted slope.

Â Again, we saw was .01 it was not statistically significant,

Â if we estimate separate slopes for northern sites versus southern.

Â The slope for northern site is positive .09 and statically significant.

Â The slope for the southern sites is, and unfortunately

Â this came with it's negative 0.02 and it's not statistically significant.

Â But keep in mind, we only had 8 observations in southern sites.

Â So what do you think about this?

Â Well if you look at the confidence intervals for these, they don't overlap.

Â And what I'm getting the vibe here is I'm not sure about this null finding here

Â because there's only 8 sites.

Â This appears to be a real positive finding for Northern sites.

Â When we unadjust it before, what the adjusted association was was

Â a weighted average of this estimate for the north and this estimate for the south.

Â And we adjust it as though it was dominated by the estimate for

Â the north since there were so many points.

Â So, just to recap, let's talk about what we've got here.

Â When we look at the overall association of damage and

Â elevation, with 95% confidence interval, it was positive but

Â relatively small magnitude and not statistically significant.

Â When we adjusted,

Â we saw the increase in the magnitude that became statistically significant.

Â So if we just stopped here compare the unadjusted and adjusted we'd say there

Â was confounding, and that would be a reasonable response to this.

Â However, if we took it one step further and said wait a minute I'm not sure I

Â feel comfortable making the same, th, this compares.

Â The average difference in percent damaged tree per meter of elevation for

Â two groups of sites in the same region whether they be north or south.

Â So as long as we're comparing them in the same region, we get the,

Â the same number applies.

Â I'm not sure I'm comfortable with that based on what we saw in the scatter plot.

Â So we took it one step further.

Â And estimated separate associations between damage and

Â elevation for the north and the south.

Â And we saw, that the north was again positive, statistically signficant.

Â The south, the estimate was negative.

Â There was not statistically signficant.

Â And while I don't have a lot of.

Â Comfort about the precision of the association amongst

Â the southern sites especially.

Â You know, based on these data and these data alone, I think I'd be willing, and

Â I'd want to talk with, environmental researchers, etcetera.

Â But I think I'd be willing to take it one step further and

Â said there was some evidence.

Â Notice these confidence intervals don't overlap, so

Â even though this wasn't significant, and was very imprecise.

Â It didn't actually go up to lower end-point for the North.

Â I might say, there's some evidence of effect modification by region.

Â And we could argue about that.

Â But we couldn't even have this discussion if we had stopped here,

Â and simply adjust it.

Â So if we're really interested there's a research question to effect modification.

Â We have to go the extra step and look at separate outcome exposure relationships.

Â And if I found evidence of effect modification, then I'm no longer

Â concerned about presenting the adjusted estimate and talking about confounding.

Â Because what I'm claiming is that, that is no longer an issue because I

Â really need to present separate estimates by region.

Â So, we'll look at four more examples of this investigation process in

Â formulating conclusions in section B.

Â But, in summary, effect modification or interaction occurs when the relation

Â between two variables Y and X depends on the level of the third variable Z.

Â Effect modification can only be ascertained by looking at

Â separate estimates and confidence intervals.

Â For the Y X relationship by different levels of Z.

Â And we'll see when we get into the realm of multiple regression,

Â we can do this sufficiently.

Â And actually get a p value to test whether any of

Â the Y X relationships differ across at least two of the levels of Z.

Â So we'll be able to do this more efficiently when interested.

Â But if we were simply to compare unadjust and

Â adjusted outcome exposure relationships adjusting for Z.

Â We can do this to assess confounding, but not to assess effect modification.

Â Now this doesn't mean that in every study one does you have to

Â investigate potential effect modification for many different factors.

Â A lot of times the reason for

Â investigating is based on a prior hypothesis by the researchers.

Â In advance they decide they want to investigate whether the association

Â they're interested in is effected by or modified, is modified by a, b, or c.

Â But you can't in, investigate it unless you plan to and look for it.

Â Coursera provides universal access to the worldâ€™s best education,
partnering with top universities and organizations to offer courses online.