[an error occurred while processing this directive]

Journal of Chinese Integrative Medicine ›› 2009, Vol. 7 ›› Issue (9): 878-882.doi: 10.3736/jcim20090915

• Medical Statistice • Previous Articles     Next Articles

Statistical analysis using SAS software package for data of R×C contingency table (Part two)

Liang-ping Hu,Li-xin Tao   

  1. Consulting Center of Biomedical Statistics, Academy of Military Medical Sciences, Beijing 100850, China
  • Received:2009-07-31 Accepted:2009-08-03 Online:2009-09-20 Published:2009-09-15
  • Contact: Liang-ping Hu E-mail:lphu812@sina.com

Key words: Statistics, Medicine, Data analysis, Statistical, Qualitative data, SAS software

"

临床分期 n 例数 (%)
Grade: Grade 0 Grade Ⅰ Grade Ⅱ Grade Ⅲ
35 12 (34.29) 6 (17.14) 7 (20.00) 10 (28.57)
223 45 (20.18) 71 (31.84) 64 (28.70) 43 (19.28)
74 14 (18.92) 14 (18.92) 17 (22.97) 29 (39.19)

"

倦怠程度 n 例数
抑郁程度: 无抑郁 轻度抑郁 中度抑郁
无倦怠 117 104 13 0
有倦怠危险信号 111 75 27 9
倦怠 35 8 20 7
倦怠严重 7 0 3 4

"

DATA PGM1;
DO A=1 TO 4;
DO B=1 TO 3;
INPUT F @@; OUTPUT;
END; END; CARDS;
104 13 0
75 27 9
8 20 7
0 3 4
;
ODS HTML;
PROC CORR SPEARMAN;
VAR A B; FREQ F; RUN;
PROC CORRESP;
TABLES A,B; WEIGHT F; RUN;
ODS HTML CLOSE;

"

2 变量
Freq 变量
A B
F

"

变量 n 均值 标准差 中位数 最小值 最大值
A 270 1.748 15 0.778 13 2.000 00 1.000 00 4.000 00
B 270 1.381 48 0.620 91 1.000 00 1.000 00 3.000 00

"

变量 A B
A
1.000 00
0.491 56
<0.000 1
B
0.491 56
<0.000 1
1.000 00

"

惯性和卡方分解
奇异值 主惯性 卡方 百分比 累积百分比 18 36 54 72 90---+---+---+---+---+---
0.545 07 0.297 10 80.217 6 91.45 91.45 *************************
0.166 69 0.027 79 7.502 1 8.55 100.00 **
合计 0.324 89 87.719 7 100.00
自由度=6

"

疼痛分级 n 例数
BME分级: 无BME BME 1级 BME 2级
无疼痛 47 25 18 4
疼痛1级 184 41 93 50
疼痛2级 33 3 16 14

"

%LET R=3;
%LET C=3;
DATA PGM20F;
DO Y=1 TO 3;
DO X=1 TO 3;
INPUT F @@;
OUTPUT;
END; END; CARDS;
25 18 4
41 93 50
3 16 14
;
PROC FREQ;
WEIGHT F;
TABLES Y*X / CHISQ;
OUTPUT OUT=AAA CHISQ; RUN;
PROC REG DATA=PGM20F OUTEST=BBB
OUTSEB;
MODEL Y=X; FREQ F; RUN;
DATA W1; SET BBB;
IF _TYPE_=‘PARMS’ THEN B=X;
ELSE DELETE; RUN;
DATA W2; SET BBB;
IF _TYPE_=‘SEB’ THEN SB=X;
ELSE DELETE; RUN;
DATA W3; SET AAA;
KF=_PCHI_; KEEP KF; RUN;
DATA W4; SET W1;
MERGE W2; MERGE W3;
KEEP B SB KF; RUN;
ODS HTML;
DATA CCC; SET W4;
DFF=(&R-1)*(&C-1); DFR=1;
DFB=DFF-DFR; VB=SB*SB;
KR=ROUND(B*B/VB, 0.001);
FILE PRINT;
IF KR>KF THEN GOTO OK1;
ELSE GOTO OK2;
OK1: PUT #2 @10 ‘The DATA is not suitable for’;
PUT #4 @10 ‘the test of linear trend.’;
GOTO OK3;
OK2: KB=KF-KR;
KB=ROUND (KB, 0.001);
PR=1-PROBCHI (KR,DFR);
PR=ROUND (PR, 0.000 1);
IF PR<0.000 1 THEN PR=0.000 1;
PB=1-PROBCHI(KB,DFB);
PB=ROUND(PB, 0.000 1);
IF PB<0.000 1 THEN PB=0.000 1;
PUT #2 @10 ‘CHISQ-R’@20 ‘P-R’#2 @30 ‘CHISQ-B’@40 ‘P-B’;
PUT #4@10 KR @20 PR#4@30 KB @40 PB;
OK3: RUN;
ODS HTML CLOSE;

"

CHISQ-R P-R CHISQ-B P-B
27.182 0.000 1 0.993 0.802 9

"

临床分期 n 肾数(只)
彩色多普勒能量图分型: Ⅰ型 Ⅱ型 Ⅲ型 Ⅳ型
代偿期 102 21 78 3 0
失代偿期 84 0 27 49 8
衰竭期 78 0 2 29 47

"

临床诊断 n 例数
病理诊断: 轻度 中度 重度
轻度 30 27 2 1
中度 18 12 5 1
重度 6 2 1 3

"

DATA PGM3;
DO A=1 TO 3;
DO B=1 TO 3;
INPUT F @@;
OUTPUT;
END; END; CARDS;
27 2 1
12 5 1
2 1 3
;
ODS HTML;
PROC FREQ;
WEIGHT F;
TABLES A*B;
TEST KAPPA;
RUN;
ODS HTML CLOSE;

"

对称性检验
统计量(S)
自由度
Pr>S
7.476 2
3
0.058 2

"

Kappa
渐近标准误差
95%置信下限
95%置信上限
0.321 4
0.110 0
0.105 8
0.537 1

"

H0下的渐近标准误差
Z
单侧Pr>Z
双侧Pr>|Z|
0.095 7
3.360 4
0.000 4
0.000 8

"

加权Kappa
渐近标准误差
95%置信下限
95%置信上限
0.377 4
0.118 2
0.145 6
0.609 1
[1] Hu LP, Tao LX . Statistical analysis using SAS software package for data of R×C contingency table(Part one)[J]. J Chin Integr Med, 2009,7(8):784-787
胡良平, 陶丽新 . R×C列联表资料的统计分析与SAS软件实现(一)[J]. 中西医结合学报, 2009,7(8):784-787
[2] Hu LP. Design of scientific researches and statistical analysis in dentistry[M]. Beijing: People’s Military Medical Press, 2007
胡良平 . 口腔医学科研设计与统计分析[M]. 北京: 人民军医出版社, 2007
[3] Liu Q, Yue XQ, Ren RZ, Ma CH, Ling CQ . Characteristics of sublingual venae in primary liver cancer patients in different clinical stages[J]. J Chin Integr Med, 2004,2(3):175-177
doi: 10.3969/j.issn.1006-5725.2011.21.052
刘庆, 岳小强, 任荣政, 马传红, 凌昌全 . 不同临床分期原发性肝癌患者的舌下络脉特征[J]. 中西医结合学报, 2004,2(3):175-177
doi: 10.3969/j.issn.1006-5725.2011.21.052
[4] Li YX, Zhou GY . Correlation between burnout and depression in freshmen[J]. Zhongguo Lin Chuang Kang Fu, 2006,10(30):48-50
李永鑫, 周广亚 . 大学新生倦怠与抑郁的相关性[J]. 中国临床康复, 2006,10(30):48-50
[5] Geng XP, Chen BC, Wang X, Gao W, Wang XF . Radiographic imaging study of the correlation between subchondral bone marrow edema and pain in knee osteoarthritis[J]. Zhonghua Gu Ke Za Zhi, 2005,25(11):682-686
doi: 10.3760/j.issn:0253-2352.2005.11.010
耿晓鹏, 陈百成, 王霞, 高巍, 王晓峰 . 软骨下骨髓水肿与膝骨关节炎疼痛相关性的影像学研究[J]. 中华骨科杂志, 2005,25(11):682-686
doi: 10.3760/j.issn:0253-2352.2005.11.010
[6] Lin SW . Application of colour Doppler energogram in the chronic renal failure[J]. Zhejiang Shi Yong Yi Xue, 2003,8(2):74-75
doi: 10.3969/j.issn.1007-3299.2003.02.005
林胜文 . 彩色多普勒能量图在慢性肾功能衰竭中的应用[J]. 浙江实用医学, 2003,8(2):74-75
doi: 10.3969/j.issn.1007-3299.2003.02.005
[7] Yu XH, Zhao LS, Zhang XH, Tan MZ, Wu XZ, Xu Q, Ma Y, Xiong ZH . Consistency of pathology and clinical diagnosis of chronic hepatitis B[J]. Wei Bing Xue He Gan Bing Xue Za Zhi, 2005,14(1):71-73
于晓辉, 赵连三, 张秀辉, 谭明珍, 吴雄志, 许倩, 马颖, 熊中华 . 慢性乙型肝炎病理与临床诊断的一致性[J]. 胃病学和肝病学杂志, 2005,14(1):71-73
[1] Wei-Jun Zhang, Da-Ming Su , Ka-Kit Hui. The development and current status of integrative medicine at UCLA. Journal of Chinese Integrative Medicine, 2012, 10(9): 953-960.
[2] Liang-ping Hu, Xiao-lei Bao, Chen-long Lv. Two-factor designs unable to examine the interactions (Part 2). Journal of Chinese Integrative Medicine, 2012, 10(9): 966-969.
[3] Ming T. Tan , Jian-ping Liu , Lixing Lao. Adequate application of quantitative and qualitative statistic analytic methods in acupuncture clinical trials. Journal of Chinese Integrative Medicine, 2012, 10(8): 847-852.
[4] Fan Yin, Ziyi Fan. Dr. Wu: A beautiful, moving and meditative song — In memory of Dr. Jing Nuan Wu, a pioneer of acupuncture and a Chinese medicine doctor in the United States. Journal of Chinese Integrative Medicine, 2012, 10(8): 837-840.
[5] Liang-ping Hu, Xiao-lei Bao, Chen-yi Guo . Two-factor designs unable to examine the interactions (Part 1). Journal of Chinese Integrative Medicine, 2012, 10(8): 853-857.
[6] Claudia Maria Sous, Mario Goncalves, Jorge Machado, Thomas Efferth, Tobias Greten , Petra Froeschen , Henry J. Greten. Effects of qigong on performance-related anxiety and physiological stress functions in transverse flute music schoolchildren: A feasibility study. Journal of Chinese Integrative Medicine, 2012, 10(8): 858-865.
[7] Liang-ping Hu , Xiao-lei Bao, Chen-long Lü . How to choose an appropriate experimental design type (Part 2). Journal of Chinese Integrative Medicine, 2012, 10(7): 738-742.
[8] David Sibbritt, Pamela van der Riet, Saowapa Dedkhard, Kannapatch Srithong. Rehabilitation of stroke patients using traditional Thai massage, herbal treatments and physical therapies. Journal of Chinese Integrative Medicine, 2012, 10(7): 743-750.
[9] C. Matos Luís, J. Goncalves Mário, R. Silva António, G. Mendes Joaquim, P. Machado Jorge, J. Greten Henry. Assessment of Qigong-related effects by infrared thermography: A case study. Journal of Chinese Integrative Medicine, 2012, 10(6): 663-666.
[10] Liang-ping Hu, Xiao-lei Bao. How to choose an appropriate experimental design type (Part 1). Journal of Chinese Integrative Medicine, 2012, 10(6): 615-618.
[11] Qing-hui Zhou . Assessment of research papers in medical university staff evaluation. Journal of Chinese Integrative Medicine, 2012, 10(6): 707-711.
[12] Yathiraj Ashwini, Mohamed Rafiq, Gollapalle L. Viswanatha, Subbanna Rajesh, Selvam Senthilraja, Mohammed Azeemuddin, Suryakanth D. Anturlikar, Paramesh Rangesh, Pralhad S. Patki . Polyherbal formulation Bresol® protects the mast cells against compound 48/80-induced disruption and histamine release: A non-immunological mechanism of mast cell stabilization. Journal of Chinese Integrative Medicine, 2012, 10(6): 690-694.
[13] Liang-ping Hu, Xiao-lei Bao, Qi Wang . The balance principle in scientific research. Journal of Chinese Integrative Medicine, 2012, 10(5): 504-507.
[14] Fan Yin . The first acupuncture center in the United States: An interview with Dr. Yao Wu Lee, Washington Acupuncture Center. Journal of Chinese Integrative Medicine, 2012, 10(5): 481-492.
[15] Qin-hui Fu, Jian Pei, Qi Jia, Yi Song, Yue-hua Gu, Xiao-xin You . Acupuncture treatment programs for post-stroke motor rehabilitation in community hospitals: Study protocol of a multicenter, randomized, controlled trial. Journal of Chinese Integrative Medicine, 2012, 10(5): 516-524.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] Dong Yang, Yong-ping Du, Qing Shen, Wei Chen, Yan Yu, Guang-lei Chen. Expression of alpha-smooth muscle actin in renal tubulointerstitium in patients with kidney collateral stasis. Journal of Chinese Integrative Medicine, 2008, 6(1): 41-44
[2] Hai-feng Wei, Bai-liu Ya, Ling Zhao, Cui-fei Ye, Li Zhang, Lin Li. Evaluation of tongue manifestation of blood stasis syndrome and its relationship with blood rheological disorder in a rat model of transient brain ischemia. Journal of Chinese Integrative Medicine, 2008, 6(1): 73-76
[3] Xi Lin, Jian-ping Liu. Herbal medicines for viral myocarditis. Journal of Chinese Integrative Medicine, 2008, 6(1): 76
[4] Xi Lin, Jian-ping Liu. Tai chi for treating rheumatoid arthritis. Journal of Chinese Integrative Medicine, 2008, 6(1): 82
[5] Liang-ping Hu, Hui Gao. Discrimination of errors in statistical analysis of medical papers published in the first issue of 2006 in Journal of Chinese Integrative Medicine. Journal of Chinese Integrative Medicine, 2008, 6(1): 98-106
[6] Yan-bo Zhu , Qi Wang, Cheng-yu Wu, Guo-ming Pang, Jian-xiong Zhao, Shi-lin Shen, Zhong-yuan Xia , Xue Yan . Logistic regression analysis on relationships between traditional Chinese medicine constitutional types and overweight or obesity. Journal of Chinese Integrative Medicine, 2010, 8(11): 1023-1035
[7] Wei Xu, Meng Shi, Jian-gang Liu, Cheng-long Wang . Collagen protein expressions in ischemic myocardium of rats with acute myocardial infarction and effects of qi-tonifying, yin-tonifying and blood-activating herbs and detoxifying and blood-activating herbs. Journal of Chinese Integrative Medicine, 2010, 8(11): 1041-1047
[8] Tao Wang , Feng Qin. Effects of Chinese herbal medicine Xiaoyao Powder on monoamine neurotransmitters in hippocampus of rats with postpartum depression. Journal of Chinese Integrative Medicine, 2010, 8(11): 1075-1079
[9] Ying Xu , Chang-chun Zeng , Xiu-yu Cai , Rong-ping Guo , Guang Nie , Ying Jin. Chromaticity and optical spectrum colorimetry of the tongue color in different syndromes of primary hepatic carcinoma. Journal of Chinese Integrative Medicine, 2012, 10(11): 1263-1271
[10] Xiang-ying Mao , Qin Bian , Zi-yin Shen. Analysis of the osteogenetic effects exerted on mesenchymal stem cell strain C3H10T1/2 by icariin via MAPK signaling pathway in vitro. Journal of Chinese Integrative Medicine, 2012, 10(11): 1272-1278
[an error occurred while processing this directive]