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

Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

Embed Size (px)

DESCRIPTION

BPD No BPD Dichotomous Outcomes

Citation preview

Page 1: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

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: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

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: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

BPD

No BPD

Dichotomous Outcomes

Page 4: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

In linear regression, continuous Y:

Topic 18: Logistic regression

xxyE )|(

)()|1()|( sdichotomouFor

xpxyPxyEy

xpxxp

for sonot but 10 since)(

assume tocUnrealisti

Page 5: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

Dichotomous Outcomes

xy

Page 6: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

oddsLog

pp

ppOdds

p

1ln

01

10 Since

xxpxp

x

)(1

)(ln i.e.,

in linear is odds logassumes model Logistic

Logistic regression

Page 7: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

x

x

eexp

xxpxp

1)(

)(1)(ln

:model Logistic

)|1(

)1|1(

by odds log theincreases in increaseunit Every : oftion Interpreta

exyOddsxyOddsRatioOdds

x

Page 8: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

)0(for 1

x

x

eep

Page 9: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

Maximum likelihood estimation of the parameters

ii

i

xiiix

x

iii

nn

exyPp

eexyPp

xyxy

11)|0(1 ,

1)|1(

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

n

ix

yx

n

i

yi

yi

n

iii

nn

i

ii

ii

ee

pp

xyP

xxyyP

1

)(

1

1

1

11

1

)1()(

ceindependenby )|(

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

likelihooddata) (observed maximize toˆ,ˆ Choose P

Page 10: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

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

WHLLW

HHH

Page 11: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

Logistic regression of BPD on birthweight

Logit estimates Number of obs = 223 W = 62.42 (df=1) p value = 0.0000Log 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: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

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: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

bwtpp 0042.00343.4

1ln

model logistic Fitted

Page 14: Birthweight (gms) BPDNProp. 0-95049680.721 951-135018800.225 1351-17509750.120 Total762230.341 BPD (Bronchopulmonary…

Birthweight(gms)

ObsrvdBPD

FittedBPD N

0-950(750) 0.721 0.708 68951-

1350(1150) 0.225 0.311 801351-

1750(1550) 0.120 0.078 75

Total 223

Observed versus fitted