SlideShare a Scribd company logo
1 of 32
Download to read offline
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Correlation analysis
Tuan V. Nguyen
Professor and NHMRC Senior Research Fellow
Garvan Institute of Medical Research
University of New South Wales
Sydney, Australia
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
What we are going to learn …
•  Examples (BMD and age, BMD and weight)
•  Formulating question
•  Covariance and correlation
•  R analysis
•  Interpretation
•  Linear regression
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Femoral neck bone density and age
women = subset(vd, sex==2)
plot(fnbmd ~ age, pch=16)
abline(lm(fnbmd ~ age))
20 30 40 50 60 70 80
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1.1
age
fnbmd
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Weight and femoral neck bone density
plot(fnbmd ~ weight, pch=16)
abline(lm(fnbmd ~ weight))
30 40 50 60 70 80
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1.1
weight
fnbmd
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
When to consider correlation?
t-test or ANOVA
When the independent variable is categorical
0
5
10
15
20
25
30
Control Treat A
0
10
20
30
40
50
60
70
80
90
100
Control Treat A Treat B Treat C
Male
Female
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
When to consider correlation?
•  Relationship between 2 continuous variables
•  Degree of co-variation
•  Predition ?
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Meet Sir Francis Galton (16/2/1822 – 17/1/1911)
Galton’s conclusions:
•  Nature dominates: “families of reputation
were much more likely than ordinary
families to produce offspring of ability”
•  Recommended “judicious marriages
during several generations” to “produce
a highly gifted race of men”
•  His “genetic utopia”: “Bright, healthy
individuals were treated and paid well,
and encouraged to have plenty of
children. Social undesirables were
treated with reasonable kindness so
long as they worked hard and stayed
celibate.”
Didn’t have data on “intelligence” so
instead studied HEIGHT
•  Although a self-proclaimed genius, who wrote that
he could read @2½, write/do arithmetic @4, and
was comfortable with Latin texts @8, he couldn’t
figure out how to model these data(!)
•  He went to JD Dickson, a mathematician at
Cambridge, who formalized the relationship by
developing what we now know as linear
regression
Research interest:
“Those qualifications
of intellect and
disposition which …
lead to reputation”
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
How do we describe the linear relationship?
•  Let X and Y be two random variables from a sample of
n obervations.
•  Measure of variability of x and y: variance
( ) ( )
∑
= −
−
=
n
i
i
n
x
x
x
1
2
1
var ( ) ( )
∑
= −
−
=
n
i
i
n
y
y
y
1
2
1
var
•  We need a measure of covariation (covariance)
between X and Y.
•  Covariance is the average of product of X and Y
( ) ( )( )
∑
=
−
−
−
=
n
i
i
i y
y
x
x
n
y
x
1
1
1
,
cov
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Variance and covariance: geometry
•  The independence or dependence between x and
y can be represented geometrically:
y
x
h
h2 = x2 + y2
x
y
h
h2 = x2 + y2 – 2xycos(H)
H
Covariance
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Meaning of variance and covariance
•  Variance is always positive
•  If covariance = 0, X and Y are independent
•  Covariance is sum of cross-products: can be positive
or negative
•  Negative covariance = deviations in the two
distributions in are opposite directions
•  Positive covariance = deviations in the two
distributions in are in the same direction
•  Covariance = a measure of strength of association
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Some correlations
-3 -2 -1 0 1 2 3
-3
-1
1
2
3
x
y
-3 -2 -1 0 1 2 3
-4
-2
0
2 x
y
r = 0.99 r = 0.90
-3 -2 -1 0 1 2 3
-3
-1
1
2
3
x
y
r = 0.50
-3 -2 -1 0 1 2 3
-3
-1
1
2
3
4
x
y
r = 0.25
-3 -2 -1 0 1 2 3
-3
-1
0
1
2
3
x
y
-3 -2 -1 0 1 2 3
-3
-1
0
1
2
3 x
y
r = 0.10 r = 0.01
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Our aim of analysis
•  To estimate the coefficient of correlation (r)
•  To test whether r = 0 ?
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Estimate of correlation coefficient r
•  Covariance is unit-depenent.
•  Coefficient of correlation (r) between X and Y is a
standardized covariance
•  r is defined by:
( )
( ) ( )
( )
y
x
SD
SD
y
x
y
x
y
x
r
×
=
×
=
,
cov
var
var
,
cov
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Test of hypothesis of correlation
•  Hypothesis: Ho: r = 0 versus Ho: r not equal to 0.
•  Fisher’s z-transformation: transform r à z
⎟
⎠
⎞
⎜
⎝
⎛
−
+
=
r
r
z
1
1
ln
2
1
( )
3
1
−
=
n
z
SE
•  Calculate standard error of z
( )
z
t
SE z
=
•  T-test:
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Example: bone density, age, and weight
•  Cross-sectional study
•  Bone mineral density (BMD) was measured at the
femoral neck
•  Age, weight
•  Questions
–  Was there a correlation between age and BMD, weight
and BMD?
–  Was the correlation statistically significant?
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Femoral neck bone density and age
women = subset(vd, sex==2)
plot(fnbmd ~ age, pch=16)
abline(lm(fnbmd ~ age))
20 30 40 50 60 70 80
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1.1
age
fnbmd
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
R analysis
> cor.test(fnbmd, age)
Pearson's product-moment correlation
data: fnbmd and age
t = -14.4162, df = 556, p-value < 2.2e-16
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
-0.5795310 -0.4584638
sample estimates:
cor
-0.5216183
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Age and BMD: an interpretation
•  The coefficient of correlation between age and
BMD was -0.52
•  Older individuals had lower BMD than younger
individuals
•  The correlation was statistically significant (P <
0.0001)
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Weight and femoral neck bone density
plot(fnbmd ~ weight, pch=16)
abline(lm(fnbmd ~ weight))
30 40 50 60 70 80
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1.1
weight
fnbmd
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
R analysis
> cor.test(fnbmd, weight)
Pearson's product-moment correlation
data: fnbmd and weight
t = 8.1795, df = 556, p-value = 1.998e-15
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.2515705 0.3998585
sample estimates:
cor
0.3277315
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Weight and BMD: an interpretation
•  The coefficient of correlation between weight and
BMD was 0.33
•  The correlation was statistically significant (P <
0.0001)
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
r and R2
•  r is the correlation coefficient
•  R2 is the coefficient of determination:
The amount of variation of one variable can be
“explained” by another variable
•  r(weight, BMD) = 0.33 means that R2 = (0.33)2 = 0.11.
This means that weight could explain 11% of the
variation in BMD
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Multi-variable correlations
•  Inter-correlations among variables can be computed
•  Bivariate correlation
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
library(psych)
temp = cbind(age, weight, height, bmi, lsbmd, fnbmd, xlap)
pairs.panels(temp)
age
30 60
0.08 -0.22
15 25
0.27 -0.36
0.4 0.8
-0.52
20
50
80
-0.17
30
60 weight
0.58 0.76 0.33 0.33 -0.01
height
-0.08 0.34 0.41
140
170
0.17
15
25
bmi
0.14 0.07 -0.16
lsbmd
0.70
0.4
1.0
-0.15
0.4
0.8
fnbmd
-0.06
20 50 80 140 170 0.4 1.0 0.0 1.0
0.0
1.0
xlap
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
> corr.test(temp)
Call:corr.test(x = temp)
Correlation matrix
age weight height bmi lsbmd fnbmd xlap
age 1.00 0.08 -0.22 0.27 -0.36 -0.52 -0.17
weight 0.08 1.00 0.58 0.76 0.33 0.33 -0.01
height -0.22 0.58 1.00 -0.08 0.34 0.41 0.17
bmi 0.27 0.76 -0.08 1.00 0.14 0.07 -0.16
lsbmd -0.36 0.33 0.34 0.14 1.00 0.70 -0.15
fnbmd -0.52 0.33 0.41 0.07 0.70 1.00 -0.06
xlap -0.17 -0.01 0.17 -0.16 -0.15 -0.06 1.00
Probability value
age weight height bmi lsbmd fnbmd xlap
age 0.00 0.07 0.00 0.00 0.00 0.00 0.01
weight 0.07 0.00 0.00 0.00 0.00 0.00 0.88
height 0.00 0.00 0.00 0.07 0.00 0.00 0.01
bmi 0.00 0.00 0.07 0.00 0.00 0.10 0.01
lsbmd 0.00 0.00 0.00 0.00 0.00 0.00 0.02
fnbmd 0.00 0.00 0.00 0.10 0.00 0.00 0.38
xlap 0.01 0.88 0.01 0.01 0.02 0.38 0.00
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Be careful !
•  Study on 44 university students
•  Measure body mass index (BMI)
•  Sexual attractiveness (SA) score
id <- seq(1:44)
bmi <- c(11.00, 12.00, 12.50, 14.00, 14.00, 14.00, 14.00,
14.00, 14.00, 14.80, 15.00, 15.00, 15.50, 16.00,
16.50, 17.00, 17.00, 18.00, 18.00, 19.00, 19.00,
20.00, 20.00, 20.00, 20.50, 22.00, 23.00, 23.00,
24.00, 24.50, 25.00, 25.00, 26.00, 26.00, 26.50,
28.00, 29.00, 31.00, 32.00, 33.00, 34.00, 35.50,
36.00, 36.00)
sa <- c(2.0, 2.8, 1.8, 1.8, 2.0, 2.8, 3.2, 3.1, 4.0, 1.5,
3.2, 3.7, 5.5, 5.2, 5.1, 5.7, 5.6, 4.8, 5.4, 6.3,
6.5, 4.9, 5.0, 5.3, 5.0, 4.2, 4.1, 4.7, 3.5, 3.7,
3.5, 4.0, 3.7, 3.6, 3.4, 3.3, 2.9, 2.1, 2.0, 2.1,
2.1, 2.0, 1.8, 1.7)
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Negative correlation
> cor.test(bmi, sa)
Pearson's product-moment correlation
data: bmi and sa
t = -2.0845, df = 42, p-value = 0.04323
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
-0.55282250 -0.01024671
sample estimates:
cor
-0.3061956
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
But …
•  plot(sa, bmi)
10 15 20 25 30 35
2
3
4
5
6
bmi
sa
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Scatter plots of data with various
correlation coefficients
Y
X
Y
X
Y
X
Y
X
Y
X
r = -1 r = -.6 r = 0
r = +.3
r = +1
Y
X
r = 0
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Y
X
Y
X
Y
Y
X
X
Linear relationships Curvilinear relationships
Linear correlation
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Y
X
Y
X
Y
Y
X
X
Strong relationships Weak relationships
Linear correlation
Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012
Summary
•  A measure of strength of association between 2
continuous variables
•  Normally distributed data
•  Only applicable to a LINEAR relationship
•  Correlation is not necessarily a measure of cause-
and-effect relationship

More Related Content

Similar to Ct lecture 11. correlation analysis

Ct lecture 17. introduction to logistic regression
Ct lecture 17. introduction to logistic regressionCt lecture 17. introduction to logistic regression
Ct lecture 17. introduction to logistic regressionHau Pham
 
Ct lecture 5. descriptive analysis of categorical variables
Ct lecture 5. descriptive analysis of categorical variablesCt lecture 5. descriptive analysis of categorical variables
Ct lecture 5. descriptive analysis of categorical variablesHau Pham
 
Lecture 3. planning data analysis
Lecture 3. planning data analysisLecture 3. planning data analysis
Lecture 3. planning data analysisHau Pham
 
Ct lecture 13. more on linear regression analysis
Ct lecture 13. more on linear regression analysisCt lecture 13. more on linear regression analysis
Ct lecture 13. more on linear regression analysisHau Pham
 
Ct lecture 6. test of significance and test of h
Ct lecture 6. test of significance and test of hCt lecture 6. test of significance and test of h
Ct lecture 6. test of significance and test of hHau Pham
 
How to write a paper statistics
How to write a paper statisticsHow to write a paper statistics
How to write a paper statisticsAmany El-seoud
 
Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Abdul Wasay Baloch
 
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...Kazuki Yoshida
 
Class 1 Introduction, Levels Of Measurement, Hypotheses, Variables
Class 1   Introduction, Levels Of Measurement, Hypotheses, VariablesClass 1   Introduction, Levels Of Measurement, Hypotheses, Variables
Class 1 Introduction, Levels Of Measurement, Hypotheses, Variablesaoudshoo
 
Research Designs
Research DesignsResearch Designs
Research DesignsAravind L R
 
quantitative research
quantitative researchquantitative research
quantitative researchcaseolaris
 
Ct lecture 20. survival analysis (part 2)
Ct lecture 20. survival analysis (part 2)Ct lecture 20. survival analysis (part 2)
Ct lecture 20. survival analysis (part 2)Hau Pham
 
Research methodology and biostatistics
Research methodology and biostatisticsResearch methodology and biostatistics
Research methodology and biostatisticsMedical Ultrasound
 
Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...
Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...
Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...MuscleTech Network
 
Commonly Used Statistics in Medical Research Part I
Commonly Used Statistics in Medical Research Part ICommonly Used Statistics in Medical Research Part I
Commonly Used Statistics in Medical Research Part IPat Barlow
 
HFS3283 paired t tes-t and anova
HFS3283 paired t tes-t and anovaHFS3283 paired t tes-t and anova
HFS3283 paired t tes-t and anovawajihahwafa
 
Commonly Used Statistics in Survey Research
Commonly Used Statistics in Survey ResearchCommonly Used Statistics in Survey Research
Commonly Used Statistics in Survey ResearchPat Barlow
 

Similar to Ct lecture 11. correlation analysis (20)

Ct lecture 17. introduction to logistic regression
Ct lecture 17. introduction to logistic regressionCt lecture 17. introduction to logistic regression
Ct lecture 17. introduction to logistic regression
 
Ct lecture 5. descriptive analysis of categorical variables
Ct lecture 5. descriptive analysis of categorical variablesCt lecture 5. descriptive analysis of categorical variables
Ct lecture 5. descriptive analysis of categorical variables
 
Lecture 3. planning data analysis
Lecture 3. planning data analysisLecture 3. planning data analysis
Lecture 3. planning data analysis
 
Ct lecture 13. more on linear regression analysis
Ct lecture 13. more on linear regression analysisCt lecture 13. more on linear regression analysis
Ct lecture 13. more on linear regression analysis
 
Ct lecture 6. test of significance and test of h
Ct lecture 6. test of significance and test of hCt lecture 6. test of significance and test of h
Ct lecture 6. test of significance and test of h
 
How to write a paper statistics
How to write a paper statisticsHow to write a paper statistics
How to write a paper statistics
 
Statistics.pptx
Statistics.pptxStatistics.pptx
Statistics.pptx
 
Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)
 
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
 
Class 1 Introduction, Levels Of Measurement, Hypotheses, Variables
Class 1   Introduction, Levels Of Measurement, Hypotheses, VariablesClass 1   Introduction, Levels Of Measurement, Hypotheses, Variables
Class 1 Introduction, Levels Of Measurement, Hypotheses, Variables
 
Research Designs
Research DesignsResearch Designs
Research Designs
 
quantitative research
quantitative researchquantitative research
quantitative research
 
Ct lecture 20. survival analysis (part 2)
Ct lecture 20. survival analysis (part 2)Ct lecture 20. survival analysis (part 2)
Ct lecture 20. survival analysis (part 2)
 
Research methodology and biostatistics
Research methodology and biostatisticsResearch methodology and biostatistics
Research methodology and biostatistics
 
statistic
statisticstatistic
statistic
 
Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...
Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...
Dylan Morrissey. Senior Clinical Lecturer and Consultant Physiotherapist Cent...
 
Commonly Used Statistics in Medical Research Part I
Commonly Used Statistics in Medical Research Part ICommonly Used Statistics in Medical Research Part I
Commonly Used Statistics in Medical Research Part I
 
HFS3283 paired t tes-t and anova
HFS3283 paired t tes-t and anovaHFS3283 paired t tes-t and anova
HFS3283 paired t tes-t and anova
 
Lab 1 intro
Lab 1 introLab 1 intro
Lab 1 intro
 
Commonly Used Statistics in Survey Research
Commonly Used Statistics in Survey ResearchCommonly Used Statistics in Survey Research
Commonly Used Statistics in Survey Research
 

More from Hau Pham

2008_Plague-Slide_Ref SR20080097
2008_Plague-Slide_Ref SR200800972008_Plague-Slide_Ref SR20080097
2008_Plague-Slide_Ref SR20080097Hau Pham
 
Thuc hanh Dich Te Hoc Y Ha Noi 2003
Thuc hanh Dich Te Hoc Y Ha Noi 2003Thuc hanh Dich Te Hoc Y Ha Noi 2003
Thuc hanh Dich Te Hoc Y Ha Noi 2003Hau Pham
 
Ct lecture 16. model selection
Ct lecture 16. model selectionCt lecture 16. model selection
Ct lecture 16. model selectionHau Pham
 
Ct lecture 8. comparing two groups categorical data
Ct lecture 8. comparing two groups   categorical dataCt lecture 8. comparing two groups   categorical data
Ct lecture 8. comparing two groups categorical dataHau Pham
 
Ct lecture 2. questionnaire deisgn
Ct lecture 2. questionnaire deisgnCt lecture 2. questionnaire deisgn
Ct lecture 2. questionnaire deisgnHau Pham
 
ThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bản
ThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bảnThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bản
ThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bảnHau Pham
 

More from Hau Pham (6)

2008_Plague-Slide_Ref SR20080097
2008_Plague-Slide_Ref SR200800972008_Plague-Slide_Ref SR20080097
2008_Plague-Slide_Ref SR20080097
 
Thuc hanh Dich Te Hoc Y Ha Noi 2003
Thuc hanh Dich Te Hoc Y Ha Noi 2003Thuc hanh Dich Te Hoc Y Ha Noi 2003
Thuc hanh Dich Te Hoc Y Ha Noi 2003
 
Ct lecture 16. model selection
Ct lecture 16. model selectionCt lecture 16. model selection
Ct lecture 16. model selection
 
Ct lecture 8. comparing two groups categorical data
Ct lecture 8. comparing two groups   categorical dataCt lecture 8. comparing two groups   categorical data
Ct lecture 8. comparing two groups categorical data
 
Ct lecture 2. questionnaire deisgn
Ct lecture 2. questionnaire deisgnCt lecture 2. questionnaire deisgn
Ct lecture 2. questionnaire deisgn
 
ThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bản
ThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bảnThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bản
ThongKe Y-Sinh Hoc_Bài 1 một số kiến thức toán cơ bản
 

Recently uploaded

Intro to disinformation and public health
Intro to disinformation and public healthIntro to disinformation and public health
Intro to disinformation and public healthTina Purnat
 
Part I - Anticipatory Grief: Experiencing grief before the loss has happened
Part I - Anticipatory Grief: Experiencing grief before the loss has happenedPart I - Anticipatory Grief: Experiencing grief before the loss has happened
Part I - Anticipatory Grief: Experiencing grief before the loss has happenedbkling
 
Physicochemical properties (descriptors) in QSAR.pdf
Physicochemical properties (descriptors) in QSAR.pdfPhysicochemical properties (descriptors) in QSAR.pdf
Physicochemical properties (descriptors) in QSAR.pdfRAJ K. MAURYA
 
Test bank for critical care nursing a holistic approach 11th edition morton f...
Test bank for critical care nursing a holistic approach 11th edition morton f...Test bank for critical care nursing a holistic approach 11th edition morton f...
Test bank for critical care nursing a holistic approach 11th edition morton f...robinsonayot
 
Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...
Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...
Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...Cara Menggugurkan Kandungan 087776558899
 
Face and Muscles of facial expression.pptx
Face and Muscles of facial expression.pptxFace and Muscles of facial expression.pptx
Face and Muscles of facial expression.pptxDr. Rabia Inam Gandapore
 
TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...
TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...
TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...rightmanforbloodline
 
Top 10 Most Beautiful Russian Pornstars List 2024
Top 10 Most Beautiful Russian Pornstars List 2024Top 10 Most Beautiful Russian Pornstars List 2024
Top 10 Most Beautiful Russian Pornstars List 2024locantocallgirl01
 
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana GuptaLifecare Centre
 
spinal cord disorders and paraplegia .
spinal cord disorders  and  paraplegia .spinal cord disorders  and  paraplegia .
spinal cord disorders and paraplegia .Mohamed Rizk Khodair
 
VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...deepakkumar115120
 
Top 10 Most Beautiful Chinese Pornstars List 2024
Top 10 Most Beautiful Chinese Pornstars List 2024Top 10 Most Beautiful Chinese Pornstars List 2024
Top 10 Most Beautiful Chinese Pornstars List 2024locantocallgirl01
 
VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...poonam rawat$V15
 
SEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdf
SEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdfSEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdf
SEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdfSachin Sharma
 
Physiologic Anatomy of Heart_AntiCopy.pdf
Physiologic Anatomy of Heart_AntiCopy.pdfPhysiologic Anatomy of Heart_AntiCopy.pdf
Physiologic Anatomy of Heart_AntiCopy.pdfMedicoseAcademics
 
Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan 081901222272 Obat Penggugur Kandu...
Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan  081901222272 Obat Penggugur Kandu...Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan  081901222272 Obat Penggugur Kandu...
Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan 081901222272 Obat Penggugur Kandu...Halo Docter
 
ABO Blood grouping in-compatibility in pregnancy
ABO Blood grouping in-compatibility in pregnancyABO Blood grouping in-compatibility in pregnancy
ABO Blood grouping in-compatibility in pregnancyMs. Sapna Pal
 
Difference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac MusclesDifference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac MusclesMedicoseAcademics
 
TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...
TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...
TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...rightmanforbloodline
 
Creeping Stroke - Venous thrombosis presenting with pc-stroke.pptx
Creeping Stroke - Venous thrombosis presenting with pc-stroke.pptxCreeping Stroke - Venous thrombosis presenting with pc-stroke.pptx
Creeping Stroke - Venous thrombosis presenting with pc-stroke.pptxYasser Alzainy
 

Recently uploaded (20)

Intro to disinformation and public health
Intro to disinformation and public healthIntro to disinformation and public health
Intro to disinformation and public health
 
Part I - Anticipatory Grief: Experiencing grief before the loss has happened
Part I - Anticipatory Grief: Experiencing grief before the loss has happenedPart I - Anticipatory Grief: Experiencing grief before the loss has happened
Part I - Anticipatory Grief: Experiencing grief before the loss has happened
 
Physicochemical properties (descriptors) in QSAR.pdf
Physicochemical properties (descriptors) in QSAR.pdfPhysicochemical properties (descriptors) in QSAR.pdf
Physicochemical properties (descriptors) in QSAR.pdf
 
Test bank for critical care nursing a holistic approach 11th edition morton f...
Test bank for critical care nursing a holistic approach 11th edition morton f...Test bank for critical care nursing a holistic approach 11th edition morton f...
Test bank for critical care nursing a holistic approach 11th edition morton f...
 
Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...
Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...
Cara Menggugurkan Kandungan Dengan Cepat Selesai Dalam 24 Jam Secara Alami Bu...
 
Face and Muscles of facial expression.pptx
Face and Muscles of facial expression.pptxFace and Muscles of facial expression.pptx
Face and Muscles of facial expression.pptx
 
TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...
TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...
TEST BANK For Guyton and Hall Textbook of Medical Physiology, 14th Edition by...
 
Top 10 Most Beautiful Russian Pornstars List 2024
Top 10 Most Beautiful Russian Pornstars List 2024Top 10 Most Beautiful Russian Pornstars List 2024
Top 10 Most Beautiful Russian Pornstars List 2024
 
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
 
spinal cord disorders and paraplegia .
spinal cord disorders  and  paraplegia .spinal cord disorders  and  paraplegia .
spinal cord disorders and paraplegia .
 
VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Arekere Bangalore 6378878445 WhatsApp: Me All Time Serviℂe Ava...
 
Top 10 Most Beautiful Chinese Pornstars List 2024
Top 10 Most Beautiful Chinese Pornstars List 2024Top 10 Most Beautiful Chinese Pornstars List 2024
Top 10 Most Beautiful Chinese Pornstars List 2024
 
VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...
VIP ℂall Girls Thane West Mumbai 9930245274 WhatsApp: Me All Time Serviℂe Ava...
 
SEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdf
SEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdfSEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdf
SEMESTER-V CHILD HEALTH NURSING-UNIT-1-INTRODUCTION.pdf
 
Physiologic Anatomy of Heart_AntiCopy.pdf
Physiologic Anatomy of Heart_AntiCopy.pdfPhysiologic Anatomy of Heart_AntiCopy.pdf
Physiologic Anatomy of Heart_AntiCopy.pdf
 
Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan 081901222272 Obat Penggugur Kandu...
Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan  081901222272 Obat Penggugur Kandu...Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan  081901222272 Obat Penggugur Kandu...
Obat Aborsi Ampuh Usia 1,2,3,4,5,6,7 Bulan 081901222272 Obat Penggugur Kandu...
 
ABO Blood grouping in-compatibility in pregnancy
ABO Blood grouping in-compatibility in pregnancyABO Blood grouping in-compatibility in pregnancy
ABO Blood grouping in-compatibility in pregnancy
 
Difference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac MusclesDifference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac Muscles
 
TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...
TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...
TEST BANK For Porth's Essentials of Pathophysiology, 5th Edition by Tommie L ...
 
Creeping Stroke - Venous thrombosis presenting with pc-stroke.pptx
Creeping Stroke - Venous thrombosis presenting with pc-stroke.pptxCreeping Stroke - Venous thrombosis presenting with pc-stroke.pptx
Creeping Stroke - Venous thrombosis presenting with pc-stroke.pptx
 

Ct lecture 11. correlation analysis

  • 1. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Correlation analysis Tuan V. Nguyen Professor and NHMRC Senior Research Fellow Garvan Institute of Medical Research University of New South Wales Sydney, Australia
  • 2. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 What we are going to learn … •  Examples (BMD and age, BMD and weight) •  Formulating question •  Covariance and correlation •  R analysis •  Interpretation •  Linear regression
  • 3. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Femoral neck bone density and age women = subset(vd, sex==2) plot(fnbmd ~ age, pch=16) abline(lm(fnbmd ~ age)) 20 30 40 50 60 70 80 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 age fnbmd
  • 4. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Weight and femoral neck bone density plot(fnbmd ~ weight, pch=16) abline(lm(fnbmd ~ weight)) 30 40 50 60 70 80 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 weight fnbmd
  • 5. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 When to consider correlation? t-test or ANOVA When the independent variable is categorical 0 5 10 15 20 25 30 Control Treat A 0 10 20 30 40 50 60 70 80 90 100 Control Treat A Treat B Treat C Male Female
  • 6. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 When to consider correlation? •  Relationship between 2 continuous variables •  Degree of co-variation •  Predition ?
  • 7. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Meet Sir Francis Galton (16/2/1822 – 17/1/1911) Galton’s conclusions: •  Nature dominates: “families of reputation were much more likely than ordinary families to produce offspring of ability” •  Recommended “judicious marriages during several generations” to “produce a highly gifted race of men” •  His “genetic utopia”: “Bright, healthy individuals were treated and paid well, and encouraged to have plenty of children. Social undesirables were treated with reasonable kindness so long as they worked hard and stayed celibate.” Didn’t have data on “intelligence” so instead studied HEIGHT •  Although a self-proclaimed genius, who wrote that he could read @2½, write/do arithmetic @4, and was comfortable with Latin texts @8, he couldn’t figure out how to model these data(!) •  He went to JD Dickson, a mathematician at Cambridge, who formalized the relationship by developing what we now know as linear regression Research interest: “Those qualifications of intellect and disposition which … lead to reputation”
  • 8. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 How do we describe the linear relationship? •  Let X and Y be two random variables from a sample of n obervations. •  Measure of variability of x and y: variance ( ) ( ) ∑ = − − = n i i n x x x 1 2 1 var ( ) ( ) ∑ = − − = n i i n y y y 1 2 1 var •  We need a measure of covariation (covariance) between X and Y. •  Covariance is the average of product of X and Y ( ) ( )( ) ∑ = − − − = n i i i y y x x n y x 1 1 1 , cov
  • 9. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Variance and covariance: geometry •  The independence or dependence between x and y can be represented geometrically: y x h h2 = x2 + y2 x y h h2 = x2 + y2 – 2xycos(H) H Covariance
  • 10. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Meaning of variance and covariance •  Variance is always positive •  If covariance = 0, X and Y are independent •  Covariance is sum of cross-products: can be positive or negative •  Negative covariance = deviations in the two distributions in are opposite directions •  Positive covariance = deviations in the two distributions in are in the same direction •  Covariance = a measure of strength of association
  • 11. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Some correlations -3 -2 -1 0 1 2 3 -3 -1 1 2 3 x y -3 -2 -1 0 1 2 3 -4 -2 0 2 x y r = 0.99 r = 0.90 -3 -2 -1 0 1 2 3 -3 -1 1 2 3 x y r = 0.50 -3 -2 -1 0 1 2 3 -3 -1 1 2 3 4 x y r = 0.25 -3 -2 -1 0 1 2 3 -3 -1 0 1 2 3 x y -3 -2 -1 0 1 2 3 -3 -1 0 1 2 3 x y r = 0.10 r = 0.01
  • 12. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Our aim of analysis •  To estimate the coefficient of correlation (r) •  To test whether r = 0 ?
  • 13. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Estimate of correlation coefficient r •  Covariance is unit-depenent. •  Coefficient of correlation (r) between X and Y is a standardized covariance •  r is defined by: ( ) ( ) ( ) ( ) y x SD SD y x y x y x r × = × = , cov var var , cov
  • 14. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Test of hypothesis of correlation •  Hypothesis: Ho: r = 0 versus Ho: r not equal to 0. •  Fisher’s z-transformation: transform r à z ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ − + = r r z 1 1 ln 2 1 ( ) 3 1 − = n z SE •  Calculate standard error of z ( ) z t SE z = •  T-test:
  • 15. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Example: bone density, age, and weight •  Cross-sectional study •  Bone mineral density (BMD) was measured at the femoral neck •  Age, weight •  Questions –  Was there a correlation between age and BMD, weight and BMD? –  Was the correlation statistically significant?
  • 16. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Femoral neck bone density and age women = subset(vd, sex==2) plot(fnbmd ~ age, pch=16) abline(lm(fnbmd ~ age)) 20 30 40 50 60 70 80 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 age fnbmd
  • 17. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 R analysis > cor.test(fnbmd, age) Pearson's product-moment correlation data: fnbmd and age t = -14.4162, df = 556, p-value < 2.2e-16 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: -0.5795310 -0.4584638 sample estimates: cor -0.5216183
  • 18. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Age and BMD: an interpretation •  The coefficient of correlation between age and BMD was -0.52 •  Older individuals had lower BMD than younger individuals •  The correlation was statistically significant (P < 0.0001)
  • 19. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Weight and femoral neck bone density plot(fnbmd ~ weight, pch=16) abline(lm(fnbmd ~ weight)) 30 40 50 60 70 80 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 weight fnbmd
  • 20. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 R analysis > cor.test(fnbmd, weight) Pearson's product-moment correlation data: fnbmd and weight t = 8.1795, df = 556, p-value = 1.998e-15 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.2515705 0.3998585 sample estimates: cor 0.3277315
  • 21. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Weight and BMD: an interpretation •  The coefficient of correlation between weight and BMD was 0.33 •  The correlation was statistically significant (P < 0.0001)
  • 22. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 r and R2 •  r is the correlation coefficient •  R2 is the coefficient of determination: The amount of variation of one variable can be “explained” by another variable •  r(weight, BMD) = 0.33 means that R2 = (0.33)2 = 0.11. This means that weight could explain 11% of the variation in BMD
  • 23. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Multi-variable correlations •  Inter-correlations among variables can be computed •  Bivariate correlation
  • 24. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 library(psych) temp = cbind(age, weight, height, bmi, lsbmd, fnbmd, xlap) pairs.panels(temp) age 30 60 0.08 -0.22 15 25 0.27 -0.36 0.4 0.8 -0.52 20 50 80 -0.17 30 60 weight 0.58 0.76 0.33 0.33 -0.01 height -0.08 0.34 0.41 140 170 0.17 15 25 bmi 0.14 0.07 -0.16 lsbmd 0.70 0.4 1.0 -0.15 0.4 0.8 fnbmd -0.06 20 50 80 140 170 0.4 1.0 0.0 1.0 0.0 1.0 xlap
  • 25. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 > corr.test(temp) Call:corr.test(x = temp) Correlation matrix age weight height bmi lsbmd fnbmd xlap age 1.00 0.08 -0.22 0.27 -0.36 -0.52 -0.17 weight 0.08 1.00 0.58 0.76 0.33 0.33 -0.01 height -0.22 0.58 1.00 -0.08 0.34 0.41 0.17 bmi 0.27 0.76 -0.08 1.00 0.14 0.07 -0.16 lsbmd -0.36 0.33 0.34 0.14 1.00 0.70 -0.15 fnbmd -0.52 0.33 0.41 0.07 0.70 1.00 -0.06 xlap -0.17 -0.01 0.17 -0.16 -0.15 -0.06 1.00 Probability value age weight height bmi lsbmd fnbmd xlap age 0.00 0.07 0.00 0.00 0.00 0.00 0.01 weight 0.07 0.00 0.00 0.00 0.00 0.00 0.88 height 0.00 0.00 0.00 0.07 0.00 0.00 0.01 bmi 0.00 0.00 0.07 0.00 0.00 0.10 0.01 lsbmd 0.00 0.00 0.00 0.00 0.00 0.00 0.02 fnbmd 0.00 0.00 0.00 0.10 0.00 0.00 0.38 xlap 0.01 0.88 0.01 0.01 0.02 0.38 0.00
  • 26. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Be careful ! •  Study on 44 university students •  Measure body mass index (BMI) •  Sexual attractiveness (SA) score id <- seq(1:44) bmi <- c(11.00, 12.00, 12.50, 14.00, 14.00, 14.00, 14.00, 14.00, 14.00, 14.80, 15.00, 15.00, 15.50, 16.00, 16.50, 17.00, 17.00, 18.00, 18.00, 19.00, 19.00, 20.00, 20.00, 20.00, 20.50, 22.00, 23.00, 23.00, 24.00, 24.50, 25.00, 25.00, 26.00, 26.00, 26.50, 28.00, 29.00, 31.00, 32.00, 33.00, 34.00, 35.50, 36.00, 36.00) sa <- c(2.0, 2.8, 1.8, 1.8, 2.0, 2.8, 3.2, 3.1, 4.0, 1.5, 3.2, 3.7, 5.5, 5.2, 5.1, 5.7, 5.6, 4.8, 5.4, 6.3, 6.5, 4.9, 5.0, 5.3, 5.0, 4.2, 4.1, 4.7, 3.5, 3.7, 3.5, 4.0, 3.7, 3.6, 3.4, 3.3, 2.9, 2.1, 2.0, 2.1, 2.1, 2.0, 1.8, 1.7)
  • 27. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Negative correlation > cor.test(bmi, sa) Pearson's product-moment correlation data: bmi and sa t = -2.0845, df = 42, p-value = 0.04323 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: -0.55282250 -0.01024671 sample estimates: cor -0.3061956
  • 28. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 But … •  plot(sa, bmi) 10 15 20 25 30 35 2 3 4 5 6 bmi sa
  • 29. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Scatter plots of data with various correlation coefficients Y X Y X Y X Y X Y X r = -1 r = -.6 r = 0 r = +.3 r = +1 Y X r = 0
  • 30. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Y X Y X Y Y X X Linear relationships Curvilinear relationships Linear correlation
  • 31. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Y X Y X Y Y X X Strong relationships Weak relationships Linear correlation
  • 32. Workshop on Analysis of Clinical Studies – Can Tho University of Medicine and Pharmacy – April 2012 Summary •  A measure of strength of association between 2 continuous variables •  Normally distributed data •  Only applicable to a LINEAR relationship •  Correlation is not necessarily a measure of cause- and-effect relationship