14
Birthweight (gms) BPD N Prop. 0-950 49 68 0.721 951-1350 18 80 0.225 1351-1750 9 75 0.120 Total 76 223 0.341 BPD (Bronchopulmonary Dysplasia) by birth weight portion of BPD decreases with birthweig

BPD (Bronchopulmonary Dysplasia) by birth weight

Embed Size (px)

DESCRIPTION

BPD (Bronchopulmonary Dysplasia) by birth weight. Proportion of BPD decreases with birthweight. Q: Can we give a more precise functional form to the relationship between the probability of having BPD and birthweight?. - PowerPoint PPT Presentation

Citation preview

Page 1: BPD (Bronchopulmonary Dysplasia) by birth weight

Birthweight(gms)

BPD N Prop.

0-950 49 68 0.721

951-1350 18 80 0.225

1351-1750 9 75 0.120

Total 76 223 0.341

BPD (Bronchopulmonary Dysplasia) by birth weight

Proportion of BPD decreases with birthweight.

Page 2: BPD (Bronchopulmonary Dysplasia) by birth weight

Q: Can we give a more precise functional form to the relationship between the probability of having BPD and birthweight? Ans: Yes, if exact birthweights rather than birthweight categories are recorded.

By fitting a logistic regression model to the dichotomous response BPD.

Page 3: BPD (Bronchopulmonary Dysplasia) by birth weight

BPD

No BPD

Dichotomous Outcomes

Page 4: BPD (Bronchopulmonary Dysplasia) by birth weight

In linear regression, continuous Y:

Topic 18: Logistic regression

xxyE )|(

)()|1()|(

sdichotomouFor

xpxyPxyE

y

xp

xxp

for sonot but 10 since

)(

assume tocUnrealisti

Page 5: BPD (Bronchopulmonary Dysplasia) by birth weight

Dichotomous Outcomes

xy

Page 6: BPD (Bronchopulmonary Dysplasia) by birth weight

oddsLog

p

p

p

pOdds

p

1ln

01

10 Since

xxp

xp

x

)(1

)(ln i.e.,

in linear is odds log

assumes model Logistic

Logistic regression

Page 7: BPD (Bronchopulmonary Dysplasia) by birth weight

x

x

e

exp

xxp

xp

1)(

)(1

)(ln

:model Logistic

)|1(

)1|1(

by odds log theincreases in increaseunit Every

: oftion Interpreta

exyOdds

xyOddsRatioOdds

x

Page 8: BPD (Bronchopulmonary Dysplasia) by birth weight

)0(for 1

x

x

e

ep

Page 9: BPD (Bronchopulmonary Dysplasia) by birth weight

Maximum likelihood estimation of the parameters

ii

i

xiiix

x

iii

nn

exyPp

e

exyPp

xyxy

1

1)|0(1 ,

1)|1(

),(, . . . ),,( :Data 11

n

ix

yx

n

i

yi

yi

n

iii

nn

i

ii

ii

e

e

pp

xyP

xxyyP

1

)(

1

1

1

11

1

)1()(

ceindependenby )|(

),...,|,...,( Likelihood

likelihooddata) (observed maximize toˆ,ˆ Choose P

Page 10: BPD (Bronchopulmonary Dysplasia) by birth weight

Likelihood Ratio Test

)},(ln{),(likelihoodLog

),(1

Likelihood1

)(

likL

like

en

ix

yx

i

ii

large. is if Reject

~)0,ˆ()ˆ,ˆ(2

0: vs0: ofA test

0:under of MLE theˆ and

, of MLE thebe ˆ,ˆLet

0

210

10

00

WH

LLW

HH

H

Page 11: BPD (Bronchopulmonary Dysplasia) by birth weight

Logistic regression of BPD on birthweight

Logit estimates Number of obs = 223

W = 62.42 (df=1)

p value = 0.0000

Log likelihood = -111.86031

-----------------------------------------------------------------------------------------

BPD | Coef. Std. Err. z P>|z| [95% Conf. Interval]

---------+-------------------------------------------------------------------------------

birthwt | -.0042291 .0006409 -6.599 0.000 -.0054852 -.0029731

_cons | 4.034291 .6957847 5.798 0.000 2.670578 5.398004

------------------------------------------------------------------------------------------

Page 12: BPD (Bronchopulmonary Dysplasia) by birth weight

Logistic regression of BPD on birthweight

Logit estimates Number of obs = 223

W = 62.42 (df=1)

p value = 0.0000

Log likelihood = -111.86031

------------------------------------------------------------------------------

BPD | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]

---------+--------------------------------------------------------------------

birthwt | .9957798 .0006381 -6.599 0.000 .9945298 .9970313

------------------------------------------------------------------------------

Page 13: BPD (Bronchopulmonary Dysplasia) by birth weight

bwtp

p 0042.00343.4

1ln

model logistic Fitted

Page 14: BPD (Bronchopulmonary Dysplasia) by birth weight

Birthweight(gms)

ObsrvdBPD

FittedBPD

N

0-950(750) 0.721 0.708 68

951-1350(1150)

0.225 0.311 80

1351-1750(1550)

0.120 0.078 75

Total 223

Observed versus fitted