introduction of logistics - sas institute · adjusted means of bmi and waist girth and adjusted...

29
Introduction of Logistic regression and its use in health science research Jason Liu Brock University

Upload: others

Post on 09-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Introduction of Logistic regression and its use in health

science research Jason Liu

Brock University

Page 2: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Agenda

• What is logistic regression?

• Its application in health sciences research

• SAS codes

Page 3: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

What is logistic regression?

Page 4: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Background

• Relationship

– Describing the change of Y with X

• Regression model – yj = 0 +ixj + e i =1,2,…,k

– When i=1, simple linear regression

ŷj = 0 +x

Both x and y (-, )

Page 5: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

An example Fifteen children with measurements of weight (kg), waist girth (cm), and

overweight status

Page 6: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

How is waist girth related to weight?

• Relationship

– Positive vs. negative ?

– Can waist girth be predicted by weight?

weight

Waist

girth

Page 7: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Can waist girth be predicted by weight?

• Regression equation:

Waist girth = 27.208 + 0.9316 weight

Page 8: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Waist girth vs. overweight status

Page 9: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Dependent variable – dichotomous Independent variable – continuous

Sudden infant death syndrome (SIDS) vs. birth weight (gms)

scatter diagram

SIDS: 1 yes

0 no

Birth wt: (-, )

Page 10: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

SIDS by birth wt category

Birth wt increase, the

probability of SIDS decrease

Page 11: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

What is logistic regression for?

• To examine the relationship between the probability of an event (e.g., SIDS – yes or ‘1’) and other variable(s) (e.g., birth wt).

• Logistic function 1 pi = __________ i=1,2,…,n. 0< p<1. 1+ e –(a+x)

Page 12: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

The odds in favour of the event

Pi/(1-pi) = e (a+x) , Taking the nature logarithm of each side of this

equation, ln[pi/(1-pi)] = ln[e (a+x) ] = a + x

Regression model : y = a + x

Page 13: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Its application in health sciences research

Page 14: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Sleep difficulty with childhood obesity

Aim: to determine if sleep difficulties are associated with childhood overweight and obesity.

• DV – overweight/obese (yes vs. no).

– Probability of event (yes).

• IV - sleep difficulties.

Page 15: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Background of the study Optimal Growth Study (OGS) is conducted

among children in schools of Niagara Region.

15

In 2004, a longitudinal study started to examine the relationship between developmental coordination disorder (DCD) and its risk factors among 2,245 students in grade 4th.

Those children are followed and measured their weight and height annually.

In 2008, a cross-sectional survey implemented to examine the impact of family environment on their obesity status (OGS).

Page 16: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Participants in this study

16

Sleeping Behaviour

Q BMI

(PHAST)

By parents and

return to home

class teacher

(N=854)

Measured at school

gym (N=2,205)

The final sample N = 606 (288 males, 318 females)

after excluding those missing information

Page 17: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Sleeping Behavior questionnaire

17

Page 18: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Covariates Age (yr)

Gender (1 = male, 0 = female)

Total physical activity score

Total calories intake (kcal/day)

Maternal education level (college or higher vs. less than college)

Total sleeping hours (hrs).

18

Page 19: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any
Page 20: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any
Page 21: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

1.00 0.93 1.12

0.85

1.86

1.30

2.06

3.43

0.00

1.00

2.00

3.00

4.00

5.00

6.00

7.00

None wake-up snore restless wake-up &snore

wake-up &restless

snore&restless all three

Page 22: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

1.00 1.04 1.35

3.52

0.00

1.00

2.00

3.00

4.00

None Any one Any two All three

P –value for trends <0.01

Page 23: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese

19.3 19.0

19.9

20.8

18.0

19.0

20.0

21.0

None Any one Any two All three

P –value for trends <0.01

69.7 69.0

71.1

74.6

66.0

68.0

70.0

72.0

74.0

76.0

None Any one Any two All three

P –value for trends <0.01

17.0 21.5 22.8

54.7

0.0

20.0

40.0

60.0

None Any one Any two All three

P –value for trends <0.01

BMI waist

Owt/obese Adjusting for age, sex,

total physical activity

score, total calories

intake, and sleep

duration

Page 24: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

In conclusion

Sleep difficulties are independently associated with overweight/obese status among children in Niagara Region.

Page 25: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

SAS codes

Page 26: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Proc logistic procedure

Syntax

proc logistic descending;

model DV =IVs covariates;

title 'results for table 2';

run;

• Odds in favour of event (yes = 1).

• IVs and covariates can be dichotomous, ordinal, or continuous variables.

Page 27: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Proc catmod procedure Syntax

proc catmod;

weight wt;

direct x1 x2;

model r=x1 x2;

Run;

• Contingency table data

Page 28: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Proc genmod procedure

Syntax

proc genmod;

class drug;

model r/n = x drug / dist = bin

link = logit

lrci;

run;

Page 29: Introduction of Logistics - Sas Institute · Adjusted means of BMI and waist girth and adjusted prevalence of overweight/obese 19.3 19.0 70.0 19.9 20.821.0 18.0 19.0 20.0 None Any

Thank you!