圖文撰寫 | tbwhere老師
劉老師醫學統計
微信公眾號
介 紹
我們想直觀表示不同性別人群中,病人組與非病人組testa指標的差異,擬選用帶誤差線的分組柱形圖。本文使用SPSS軟體快速計算基本統計量,接著輸入到Graphpad中,繪製帶誤差線的分組柱形圖,非常方便實用。
SPSS計算基本統計量
1、數據從EXCEL導入SPSS
2、點擊Data,選擇Split File
3、在SplitFile對話框中,選擇Organize output by groups,並把sex選入框中,點擊OK。
4、點擊Analyze,選擇Descriptive Statistics,接著選擇Explore
5、在Explore對話框中,Testa選入Dependent List框,disease選入Factor List框,點擊OK。
6、基本統計量
在Sex=0組,disease=0的例數為59,均值為85.3,標準差為11.8;disease=1的例數為63,均值為105.3,標準差為11.3。
在sex=1組,disease=0的例數為42,均值為85.6,標準差為13.1;disease=1的例數為37,均數為102.9,標準差為16.1。
Graphpad繪製分組柱形圖
1、打開軟體Prism Graphpad,選擇Grouped,接著選擇Enter or import data into a new table,選擇Enter and plot error values already calculated elsewhere,然後點擊create。
2、把從SPSS中計算的均數,標準差,例數錄入進Graphpad。
3、然後點擊Graphs的Data2(註:因為我們錄入數據為Data2),然後選擇圖形類型,點擊OK。
4、接著添加組間比較的p值,假設女性人群中,病人組和非病人組testa差異有統計學意義(p<0.01);在男性人群中,病人組和非病人組testa差異無統計學意義(p>0.05),使用下圖中的工具,可以標註在圖中,**表示p<0.01,ns表示p>0.05。
學會了嗎?很簡單吧!
堅持看到這裡的小夥伴~
覺得此文對您有所幫助的話
一定要關注公眾號哦~