This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Confidence interval for Pearson's product-moment correlation of age and height, based on Fisher's transformation.Correlation = 0.964 on 6 observations (95% CI: 0.700 to 0.996)
19
สถต Spearman Rank correlation coefficient
- ใชวดความสมพนธ
- ขอมลมลกษณะสมพนธ จานวน n ค
ขอกาหนด (Assunption):
- ตวแปรมสเกล Ordinal Scale
- กรณตวแปรมสเกล interval, Ratio Scale
ลกษณะการแจกแจงไมใช bivariate normality
20
วธตรวจสอบขอกาหนด (Assunption):
- ตวแปรมสเกล ordinal scale
- ตวแปรมสเกล interval, ratio แตลกษณะไมใช bivariate
Test of Ho: stress and satisfaction are independentProb > |t| = 0.0144
4. หาคา p-value < 0.05
นาคา t=5.12; df=3 เปดตาราง t; 0.005<p-value<0.01
5. ตดสนใจและสรปผล ความเครยดมความสมพนธ
กบความพงพอใจในการทางานแตมทศทางลบ
อยางมนยสาคญทางสถต
5.12
29
ชวงความเชอมนของ Spearman rank Correlation
1
1
1
12
2
1
1
2
2
2
2
Z
Z
Z
Z
e
e,
e
e
3;
32/1
22/1
1
n
ZZZ
n
ZZZ FF
s
sF r
rZ
1
1ln5.0
. ci2 stress satisfaction,spearmanConfidence interval for Spearman's rank correlation of stress and satisfaction, based on Fisher's transformation.Correlation = -0.947 on 5 observations (95% CI: -0.997 to -0.397)
Warning: This method may not give valid resultswith small samples (n<= 10) for rank correlations.
. di min((1-ttail(14-2,3.2309493)), (ttail(14-2,3.2309493)))
.0036033 (เทยบกบ 0.05) หรอเปดตาราง t
. di min((1-ttail(14-2,3.2309493)), (ttail(14-
2,3.2309493)))*2
.0002927 (เทยบกบ 0.05)
4. หาคา P-value
3. เลอกวธการทางสถต
และคานวณคาสถต
2. กาหนดระดบนยสาคญ
1. ตงสมมตฐาน 0:;0:0 sAs HH
ขนตอนในการทดสอบสมมตฐาน: systolic BP และ diastolic BPมความสมพนธหรอไม
0.05
2309493.3)6821.1(
)214(6821..
)1(
222
s
s r
nrt
34
1.ตงสมมตฐาน
2. กาหนดระดบนยสาคญ 0.05
3. เลอกวธการทางสถตและคานวณคา
0:;0:0 sAs HH ขนตอนในการทดสอบสมมตฐาน:
)n(n
id
sr
12
261
22
222
2 yx
dyxsr i
หรอ
35
-441-5-1-1
-3.51103-17.5-2
di =R(x)-R(y)
1691386.3143.61315684.4135.612
256184.6130.81113282.2131.7101111088140.89
168485.9133.214
07785.8135.75
12.25128.589.3140.28
1101186.5141.261131489.4143.97
53
8.512
R(x)
241
14
R(y)
977.8132.54183.5131.83
56.2574.4140.22489.7141.61
d2diasbpsysbpidno
5.144)]()([(1
22
n
iiii yRxRd
36
สถต Spearman Rank correlation
กรณมคาซากน
22
222
2 yx
dyxsr i
yx Tnn
yTnn
x12
;12
32
32
yxitt
T ii
,;12
3
29.3)6821.1(
)146821(.6821.0
)1(
222
s
s r
nrt
37
. spearman sysbp diasbpNumber of obs = 14
Spearman's rho = 0.6821Test of Ho: sysbp and diasbp are independent
Prob > |t| = 0.0072
. ci2 sysbp diasbp,spearmanConfidence interval for Spearman's rank correlation of sysbp and diasbp, based on Fisher's transformation.Correlation = 0.682 on 14 observations (95% CI: 0.237 to 0.890)
4. หาคา p-value: เปดตาราง t/หรอใช Stata. di min((1-ttail(14-2,3.2309493)), (ttail(14-2,3.2309493))).0036033
. di min((1-ttail(14-2,3.2309493)), (ttail(14-2,3.2309493)))*2