Académique Documents
Professionnel Documents
Culture Documents
CatchPokemon Motivationtogetoutsidetohuntem.
Hatcheggs Motivationtowalk2km,5kmor10km
incubateandhatcheggs.
Eviehaswalked400+kmsinceJulyplayingPokemon!
MONASH 10,000STEPS
Twitter:@PennyRobaus
OBJECTIVES
Attheendofthislecture,youwillbeableto:
Explaintheimportanceoflogisticregressioninpublichealth.
Describewhenlogisticregressionisappropriate.
Describethecomponentsofthelogisticregressionequation.
Interpretlogisticregressionoutput.
Linearregressionrefresher
Logisticregression(example:breastreconstruction)
TheAngelinaJolieeffect
Anexampleofconfounding
Modelprediction
Modelevaluation
Generalequation:
y 0 1 x1
BW=0.05957 OL+2.183
Numerical
continuous
Numerical: continuous
Dataset:BUPAHealthFoundationHealthandWellbeingafter
BreastCancerStudy.
Studyquestion:Whatfactorsinfluenceawomansdecisionto
have/nothaveabreastreconstructionaftermastectomyfor
breastcancer?
10
Breastreconstructioncanbeanimplant,orcanbemuscle/skin
flapsfromelsewhereonthebody(back,stomach).
http://www.cancer.org/cancer/breastcancer/overviewguide/breast-cancer-overview-treating-surgery
11
Completedthe2nd followupquestionnaire(FQ2).
Onaverage2.8yearsafterdiagnosis.
Noactivediseaseorrecurrenceofbreastcancerbythen.
Hadamastectomyononeside(unilateral).
i.e.Womenwhohadadoublemastectomywerenotincluded.
Womenwhohadalumpectomywerenotincluded.
12
Whattypeofvariableishadabreastreconstruction(Y/N)?
Categorical binary
Isbreastreconstructiontheoutcomeorexposure?
13
Exposure:
CanbeCategoricalorContinuous(sameaslinearregression)
Logofoddsofoutcome:
Probability(orrisk,)
0 1 x1
log
14
ln
e
y
0 1 x1
1 e
e 0 1x1
1 e
e
1 e
0 1 x1
0 1 x1
0 1 x1
0 1 x1
e 0 1x1
e 0 1 x1
Generallogisticregression:
0 1 x1
e 0 1x1
0 1 x1
e 0 1x1
1 e 0 1 x1
yrangesfrom0to1.
Oddsofdisease=exp(1)
Exp()ofteninoutputnot.
15
STEP 1
CATEGORICAL
%TABLES
UNIVARIABLE
LOGISTIC
REGRESSION
16
STEP 1
CATEGORICAL
%TABLES
UNIVARIABLE
LOGISTIC REGRESSION
17
Whichfactorsareassociatedwithanincreased rateofbreastreconstruction?
AnythingwithOR>1:Postsecondaryschool,privatehealth.
Whichfactorsareassociatedwithadecreased rateofbreastreconstruction?
AnythingwithOR<1:Age,Nonmetro,Dependentchild,Radiotherapy.
InterprettheNagelkerke r2.(SimilartoR2 forlinearregression)
18
41.1%ofthevariationinbreastreconstructionexplainedbythe6factorsinthe
model.
19
20
21
http://time.com/3450368/
theangelinaeffect/
22
23
http://www.heraldsun.com.au/lifestyle/health/angelina-jolies-celebrity-mastectomycoverage-improves-awareness/story-fni0diac-1227547459215
CONFOUNDING
Age (yrs)
Dependent
child < 12 yrs
Univariable OR = 1.65
Breast
reconstruction
24
CONFOUNDING
Age (yrs)
Dependent
child < 12 yrs
Univariable OR = 1.65
Multivariable OR = 0.29
Breast
reconstruction
25
Modelpredictionmorecomplexthanlinear!
y
0 1 x1 ... p x p
1 e
0 1 x1 ... p x p
26
Thereareafewmortalitymodelsforcardiacsurgery,incl:
EuroSCORE(DevelopedinEuropein1999)
http://ejcts.oxfordjournals.org/content/16/1/9.short
EuroSCOREII(DevelopedinEuropein2012)
Aus SCORE(DevelopedbyMonashSPHPMin2009)
Aus SCOREII(DevelopedbyMonashSPHPMin2014)
http://www.sciencedirect.com/science/article/pii/S0022522314001871
Thesemodelsincludeanadditivemodel(usingOddsRatiosasestimates)and
multiplicativemodel(usinglogisticmodelequation).
Cardiacsurgeonsneedbackofenvelopemodeltopredictmortalityriskand
explainrisktopatients.Hencephoneappshavebeendeveloped.
27
Question:Ifyouwereabusycardiacsurgeon,whatwould
appeal toyouabouthavingtheApp?
28
AUSSCORE IIAPP
29
http://dx.doi.org/10.1016/j.jtcvs.2014.02.027
CASE 1
30
CASE 2
31
CASE 3
32
CASE 4
33
Question:Ifyouwereabusycardiacsurgeon,whatwould
appeal toyouabouthavingtheApp?
Cheap(appisFREE)
Quick
Easy(appcalculatesadditive&logisticmodel)
34
HosmerLemeshow goodnessoffitstatistic
Measureofmodelcalibration.
ApproximatedbythePearsons2 statistic.
Comparestheobservedandexpectedfrequenciesofoutcome(Y/N)
acrossdecilesofrisk.
Interpretingthe2 value
Alow2 value=highpvalue>0.05.Themodelfitsthedatawell.
Ahigh2 value=lowpvalue<0.05.Themodelisapoorfittothedata.
ReceiverOperatorCharacteristic(ROC)curveandcindex
Howwelldoesthemodeldiscriminatebetweenpatientswhodevelop/
donotdeveloptheoutcomeofinterest accordingtoprediction.
35
Acutoffrisk(valueofy)isspecifiedaspartoftheanalysis.
Sensitivity(yaxis)vs1 Specificity(xaxis)plottedonagraph.
c-index = 0.725
Good fit
c-index = 0.884
Very good fit
Cindex:TheareaundertheROCcurve.
cindex=1.0Perfectaccuracy
cindex>0.8Verygoodfit
cindex0.7to0.8Goodfit
cindex<0.7Poorfit
cindex0.5Nobetterthanchance
36
37
Logisticregressionisverycommonlyusedinpublichealth.
Generalform:
y
0 1 x1 ... p x p
1 e
0 1 x1 ... p x p
exp()=OR.Oftengiveninoutputinsteadof.
Modelpredictionismorecomplexthanlinearregression.
Modelevaluation
HosmerLemeshow goodnessoffit
ReceiverOperatorCharacteristic(ROC)curve
38