Search JIM Advanced Search

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] Tara Rajendran. Addressing the need for personalizing music therapy in integrative oncology. Journal of Integrative Medicine, 2022, 20(4): 281-283.
[2] Wan-jun Guo, Yi Wang, Yu Deng, Lin-yan Cheng, Xin Liu, Ruo-fan Xi, Sheng-jie Zhu, Xin-yi Feng, Liang Hua, Kan Ze, Jian-yong Zhu, Dong-jie Guo, Fu-lun Li. Therapeutic effects of the extract of Sancao Formula, a Chinese herbal compound, on imiquimod-induced psoriasis via cysteine-rich protein 61. Journal of Integrative Medicine, 2022, 20(4): 376-384.
[3] Cai-lian Fana, Wan-jun Caib, Meng-nan Ye, Miao Chen, Yi Dai. Qili Qiangxin, a compound herbal medicine formula, alleviates hypoxia-reoxygenation-induced apoptotic and autophagic cell death via suppression of ROS/AMPK/mTOR pathway in vitro. Journal of Integrative Medicine, 2022, 20(4): 365-375.
[4] Shang-jin Song, Xuan Liu, Qing Ji, Da-zhi Sun, Li-juan Xiu, Jing-yu Xu, Xiao-qiang Yue. Ziyin Huatan Recipe, a Chinese herbal compound, inhibits migration and invasion of gastric cancer by upregulating RUNX3 expression. Journal of Integrative Medicine, 2022, 20(4): 355-364.
[5] Vibha Malhotra, Joanna Harnett, Erica McIntyre, Amie Steel, Keith Wong, Bandana Saini. To “tell or not to tell”—Exploring disclosure about medicine use by people living with sleep disorders. Journal of Integrative Medicine, 2022, 20(4): 338-347.
[6] Maryam Azimi, Hanieh Niayesh, Mahboobeh Raeiszadeh, Sedigheh Khodabandeh-shahraki. Efficacy of the herbal formula of Foeniculum vulgare and Rosa damascena on elderly patients with functional constipation: A double-blind randomized controlled tria. Journal of Integrative Medicine, 2022, 20(3): 230-236.
[7] Marisa Casal. Improving the health and treatment success rates of in vitro fertilization patients with traditional chinese medicine: need for more robust evidence and innovative approaches. Journal of Integrative Medicine, 2022, 20(3): 187-192.
[8] Ning Guo, Fei Wu, Mei Wu, Yuan Wang, Qing Lang, Xiao Lin, Yi Feng. Progress in the design and quality control of placeboes for clinical trials of traditional Chinese medicine . Journal of Integrative Medicine, 2022, 20(3): 204-212.
[9] Tareq A. Wani, Zahoor A. Kaloo, Nisar A. Dangroo. Aconitum heterophyllum Wall. ex Royle: A critically endangered medicinal herb with rich potential for use in medicine. Journal of Integrative Medicine, 2022, 20(2): 104-113.
[10] Mohammad Fazil, Sadia Nikhat. Why the “sugars” in traditional Unani formulations are a pivotal component: A viewpoint perspective. Journal of Integrative Medicine, 2022, 20(2): 91-95.
[11] Yan-jun Lin, Kun-li Jiao, Bo Liu, Lu Fang, Shu Meng. Antiplatelet and myocardial protective effect of shexiang tongxin dropping pill in patients undergoing percutaneous coronary intervention: A randomized controlled trial. Journal of Integrative Medicine, 2022, 20(2): 126-134.
[12] Deng-chao Wang, Miao Yu, Wen-xian Xie, Li-yan Huang, Jian Wei, Yue-hua Lei. Meta-analysis on the effect of combining Lianhua Qingwen with Western medicine to treat coronavirus disease 2019. Journal of Integrative Medicine, 2022, 20(1): 26-33.
[13] Mahlagha Dehghan, Alireza Ghanbari, Fatemeh Ghaedi Heidari, Parvin Mangalian, Mohammad Ali Zakerid. Use of complementary and alternative medicine in general population during COVID-19 outbreak: A survey in Iran. Journal of Integrative Medicine, 2022, 20(1): 45-51.
[14] Jose Antonio Castilla-Jimena, Isabel Ruiz-Pérez, Jesús Henares-Montiel. Impact of socioeconomic and health-related factors on consumption of homeopathic and natural remedies in Spain in 2006, 2011 and 2017. Journal of Integrative Medicine, 2022, 20(1): 52-56.
[15] Ofer Baranovitch, Meirav Wolff-Bar, Meora Feinmesser, Chen Sade-Zaltz, Ilan Tsarfaty, Victoria Neiman. Searching for the emotional roots of breast cancer: A cross-disciplinary analysis integrating psychology, Chinese medicine, and oncology biomarkers. Journal of Integrative Medicine, 2022, 20(1): 57-64.
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