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

76 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 1B: More Simple Regression Methods

In this model, more detail is given regarding Cox regression, and it's similarities and differences from the other two regression models from module 1A. The basic structure of the model is detailed, as well as its assumptions, and multiple examples are presented.

- John McGready, PhD, MSAssociate Scientist, Biostatistics

Bloomberg School of Public Health

So this section we'll put some numbers around what we were talking about in Section A,

Â and look at the results from

Â simple Cox Regression where we have binary or categorical predictors.

Â So at the end of this lecture section hopefully you'll be

Â able to interpret the slopes from

Â simple Cox Regression models as log hazard ratios

Â and the exponentiated version of the slopes as hazard ratios.

Â So let's look at our famous primary biliary cirrhosis trial the randomized clinical

Â trial on 312 patients with primary biliary cirrhosis,

Â or PBC, study at the Mayo Clinic in Rochester, Minnesota.

Â You may recall that the 312 patients were randomized either

Â received DPCA or placebo upon their enrollment in the study.

Â And they were followed from enrollment until death or censoring whether they dropped out,

Â or made it to the end of the study without having died.

Â And the follow-up period was up to 12 years for the individuals enrolled in the studies.

Â So the question we might have is what is

Â the association between treatment and patient survival?

Â Can we quantify that?

Â So previously in statistical reasoning one we did a visual assessment.

Â We looked at the Kaplan-Meier survival estimates and then we computed

Â the incidence rate ratios based on the number

Â of events and the time at risk in both groups.

Â And we saw visually from the Kaplan-Meier estimates that there

Â were little available visual evidence of one drug being superior to the other,

Â sort of fought out the same territory in the curve

Â and crossed over each other at various points.

Â And we did quantify that with

Â the incidence rate ratio but now we

Â currently have no quantitative measure that I've shown you.

Â So let's estimate this instance rate ratio

Â or hazard ratio using Cox regression to show how this works.

Â So what the regression model that would be fit does is it fits

Â a model of this sort where we estimate the log hazard of

Â mortality for the subjects of the given time and the follow-up period is again equal

Â this time specific intercept if you will plus the slope times our predictor.

Â And here, our predictor of interest is binary and I've made the choice to model as a

Â one if a subject was randomized to

Â the DPCA group and a zero if they were randomized to the placebo.

Â And as long as we're comparing these two groups at the same time,

Â and the follow-up period,

Â this intercept piece holds for both of them,

Â and the group who was in the DPCA who was randomized to receive DPCA gets this extra B.

Â So in any given time the difference in

Â the log hazard between these two groups is simply this slope, beta1 hat.

Â So in other words, just to reiterate,

Â this slope estimates the difference in the log hazard for

Â individuals in the drug group minus the log hazard of

Â mortality for individuals in the placebo group at the same time,

Â t, and the followup period or reexpressed mathmatically,

Â the slope is the log of the hazard ratio of mortality comparing the drug group,

Â to the placebo group at the same point in time.

Â So if we actually ran the results in the computer we get regression that look like this,

Â where our slope estimate was equal to 0.057.

Â This is the estimated log hazard research.

Â So this shows, at least in this study,

Â an the elevated log hazard and mortality for those who

Â received the drug compared to those who got the placebo.

Â If we exponentiate this to get a estimated hazard ratio,

Â exponentiated version is equal

Â to 1.057 or approximately 1.06.

Â So at least in the study samples we estimated that those in the drug group had

Â a slightly elevated risk or hazard of mortality over the follow-up period compared to

Â those in the placebo group elevated by roughly 6%.

Â What is this intercept? Well this is essentially, in this study,

Â this estimates the log hazard of mortality at any given time,

Â at a time, t. So to fully specify this at time,

Â t, when x1 is equal to zero when we're actually looking at the placebo group.

Â So this tracks the log risk of mortality

Â over time for those individuals randomized to the placebo group.

Â So this changes as a function of time.

Â But again the important thing to note is this model

Â estimates the comparison between the group coded one,

Â the drug group, to the placebo at any point in time to be

Â constant on the log hazard scale.

Â And when exponentiated we get a ratio,

Â a constant ratio, of relative hazards over the entire follow-up period.

Â So wherever this log hazard is at that given point in time we're looking

Â at for the placebo group we get the log hazard

Â for the drug group by adding that slope of .057.

Â So let's look at the infant mortality and

Â prenatal vitamins example doing this Cox regression approach.

Â We've already done this by estimating

Â incidence rate ratios based on the raw data, by hand,

Â and looking at the Kaplan-Meier curve estimates and like the DPCA study

Â with primary biliary cirrhosis we saw very little visual evidence of

Â an association between mortality of the infant and

Â which vitamin group the mother was

Â randomized to in the prenatal period whether she got vitamin A,

Â beta carotene, or placebo.

Â But how could we model this and estimate relative risks or

Â relative hazards at any given time point using Cox regression?

Â Well we've got three groups here,

Â and again this is just a general regression model,

Â so the protocol would be to estimate

Â two binary indicators for two of the groups and leave one out as the reference.

Â So what I've chosen to do is make the reference group,

Â the placebo group and their value of x1 and x2 is zero.

Â This is the group that all other groups will be compared to.

Â For x1 equals one,

Â I'm going to let that indicate the beta carotene group.

Â And this implies that x2 is equal to zero for those in the beta carotene group.

Â For x2 is equal to 1 and hence x1 is equal to zero,

Â this will indicate subjects whose mothers were

Â randomized to receive vitamin A during the prenatal period.

Â So what we get is a result like this on the log hazard scale.

Â So this slope here compares those who are indicated by x1 equals one,

Â beta carotene to the reference group which was placebo.

Â But this is on the log hazard scale and the difference in log hazards.

Â This compares those in the vitamin A group to those on placebo.

Â And this value here is the log risk of

Â mortality for children whose mothers were randomized to placebo

Â during the prenatal period at any point in

Â the follow-up time period of the study which was up to 180 days.

Â So this is our starting point.

Â In order to get the log hazards for the other groups we add

Â their respective slope to that starting point for the placebo.

Â So if we exponentiate this slope of .02 for the beta carotene group,

Â we'll get the relative hazard or

Â hazard ratio mortality in the followup period for children whose mothers receive

Â beta carotene during the prenatal period compared to mothers

Â who received placebo and it's roughly equal to 1.02.

Â And if we do the same thing for the vitamin A group relative to the placebo group,

Â exponentiate that, we get a relative hazard or hazard ratio of 1.06, slightly higher.

Â But this jibes with what we saw in this Kaplan-Meier curves that essentially the risk of

Â mortality over the follow up period was very similar

Â among the three prenatal vitamin groups,

Â among infants born to mothers in

Â the three prenatal groups in the first 180 days following birth.

Â Here's an article that presents the results of

Â a randomized trial of a home-based intervention of early feeding practices.

Â So as per the authors the intervention consisted of five or six home visits from

Â a specially trained research nurse delivering

Â a staged home based intervention in the antenatal period at one,

Â three, five, nine, and 12 months.

Â So this was intervention to help new mothers implement early breastfeeding.

Â And so here's a Kaplan-Meier curve that traces the breastfeeding rate,

Â the proportion of children who are still being breastfed,

Â in the follow-up period up to a year a follow-up by

Â week for those in the control group and those in the intervention group.

Â And it's difficult to see in this graph but the dotted line

Â here is the control and the solid line here is the intervention.

Â So the proportion, this tracks the proportion,

Â who are still being breastfed,

Â the proportion who have yet to have

Â the event beyond a certain point of time and we can see that

Â the curves are higher for

Â the intervention group indicating more retention with breastfeeding.

Â So what the authors reported,

Â though that quantified the difference,

Â and this is taken directly from the article as compared with the control group

Â the hazard ratio for stopping breast feeding in the intervention group was 0.82.

Â So in other words the relative hazard at any point in time in the follow-up period,

Â the yearlong follow-up period,

Â that children in the intervention group

Â had breastfeeding stopped compared to children in the control group was 0.82.

Â So 18% lower hazard,

Â lower risk of breastfeeding being stopped.

Â And that jibes with what we saw in the Kaplan-Meier curves because more children,

Â a higher percentage, were being

Â breastfed as a function time over time compared to the control group.

Â This comes from a Cox regression model that

Â the authors estimated if they had done it in the computer they would have gotten

Â a slope for x1 if x1 were

Â coded as one for the intervention group and zero for the control group of negative

Â 0.2 because e to the negative .02 is approximately equal to 0.82,

Â their estimated hazard ratio.

Â So the authors used Cox regression and that's what

Â the results would have looked like on the log hazard scale.

Â So in summary again the slopes from Cox regression models with

Â the binary categorical predictor compare the log hazard of

Â the time to event outcome between two groups at the same time in the follow-up period.

Â And the idea is that that difference in

Â the log hazard is constant regardless

Â of where we're comparing them in the follow-up period.

Â And then the slopes can be exponentiated to get

Â the estimated hazard ratio for the groups being compared.

Â And we get that constant ratio of hazards

Â regardless of where we're comparing them in the follow-up period.

Â In the next section will look at doing the same thing

Â but where x is a continuous variable.

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