• 中国科学论文统计源期刊
  • 中国科技核心期刊
  • 美国化学文摘(CA)来源期刊
  • 日本科学技术振兴机构数据库(JST)

临床输血与检验 ›› 2021, Vol. 23 ›› Issue (6): 788-793.DOI: 10.3969/j.issn.1671-2587.2021.06.025

• 护理与教育 • 上一篇    下一篇

利用Excel VBA函数在医学检验中进行四格表统计的教学尝试*

黄海樱, 陈波, 周强, 冀天星, 陈靖楠   

  1. 510260 广州医科大学第二附属医院
  • 收稿日期:2019-12-10 出版日期:2021-12-20 发布日期:2021-12-21
  • 通讯作者: 陈波,男,主任技师,主要从事临床一线检验工作与临床医学的临床教学工作,(E-mail)hhycb@tom.com。
  • 作者简介:黄海樱(1972-),女,广东广州人,主任技师,学士,主要从事临床医学检验的临床教学与教改研究,(E-mail)799961191@qq.com。
  • 基金资助:
    *本课题受广东省临床教学基地教学改革研究项目(No.20-17JD103)、广州市教育科学规划课题项目(No.201811600; No.201911955)、广州医科大学2018年教育科学规划课题项目(No.20180106)

Use Excel VBA Function in Fourfold Table Statistics for Medical Laboratory Teaching

HUANG Hai-Ying, CHEN Bo, ZHOU Qiang, et al   

  1. The Second Affiliated Hospital of Guangzhou Medical University, Guangzhou 510260
  • Received:2019-12-10 Online:2021-12-20 Published:2021-12-21

摘要: 目的 通过Excel实现对四格表卡方检验、四格表评估诊断试验、配对设计四格表卡方检验等数据的统计分析过程,补充Excel对卡方检验统计功能,应用于实验数据统计的教学尝试。方法 通过Excel的VBA程序界面编写统计程序,完成四格表卡方检验和四格表评估诊断试验(配对四格表)的统计功能。并与《卫生统计学》的实例分析进行对比,验证统计结果准确性。结果 卡方检验、校正卡方检验和确切概率法的输入参数为:A(A实验阳性数)、B(A实验阴性数)、C(B实验阳性数)和D(B实验阴性数)。软件根据上述条件自动输出相应统计描述参数:A+C、B+D、A+B、C+D、A+B+C+D、具体卡方检验、P值和判断。评估诊断试验和配对卡方输入参数为:A(真阳性)、B(假阳性)、C(假阴性)和D(真阴性)应为数字,否则有提示框。软件根据上述条件自动输出相应统计描述参数:A+C、B+D、A+B、C+D、A+B+C+D、该诊断试验的灵敏度、特异度、阳性预测值、阴性预测值和准确率;配对卡方检验、P值和判断。结论 Excel 能替代手工处理四格表数据统计功能,自动选择相应χ2检验统计方法,提供具体P值。

关键词: Excel, VBA, 四格表卡方检验, 医学检验专业, 临床教学

Abstract: Objective To realize the statistical analysis of data such as fourfold table chi-square test, evaluation and diagnostic test of four-fold table, and paired design of fourfold table chi-square test through Excel, so as to supplement the statistical function of chi-square test of Excel, and apply it to the teaching practice. Methods The statistical program is compiled through Excel VBA program interface to complete fourfold table chi-square and evaluation and diagnostic test, which compared with the case analysis of Health Statistics to vertify the accuracy of results. Results The input parameters include A (positive number in A rest), B (negative number in A test), C (positive number in B test) and D (negative number in B test). According to the above-mentioned conditions, the software automatically outputs the corresponding statistical description parameters: A+C, B+D, A+B, C, D, A+B+C+D, chi-square test, P values, and judgment. The assessment of diagnostic test and paired chi-square input parameters are: A (true positive), B (false positive), C (false negative) and D (true negative) should be numbers, otherwise there is a prompt dialog box. The software output corresponding statistical description parameters automatically according to these conditions: A+C, B+D, A+B, C+D, A+B+C+D, the diagnostic test's sensitivity, specificity, positive predictive value, negative predictive value and accuracy, matching chi-square test, P values and judgment. Conclusion Excel could replace manual process of fourfold tables data, automatically select the corresponding test statistics method, and provide P values and judgment.

Key words: Excel VBA, Fourfold table chi-square test, Medical laboratory specialty, Clinical teaching

中图分类号: