윌콕슨 순위합 검정 (wilcoxon rank sum test)
1. 언제 이용?
자료가 정규분포하지 않을때의 t test가 부적절시의 비모수 통계법
전체 데이터에서 순위를 매기고, 두 그룹으로 나누어 순위합을 비교후 Z 통계량을 구하고, 통계적 유의성 검정
표를 제시할 때 두 그룹의 순위합이 아니라, 대표값인 중위수 (Q1, Q3)를 보여 줌.
Wilcoxon Rank-Sum (or Mann-Whitney U) test is the non-parametric equivalent of two-sample independent T-test.
It is a test of location, i.e., compares the medians: whether there is (or not) a significance difference in medians.
(Wilcoxon Rank-Sum(또는 Mann-Whitney U) 검정은 두 표본 독립 T 검정의 비모수적 동등물입니다.
이는 위치 검정으로, 중앙값을 비교합니다. 즉, 중앙값에 유의미한 차이가 있는지를 검정합니다.)
2. 가설검정
Ho: 두 그룹의 중앙값 차이가 없다.
H1: 두 그룹의 중앙값 차이가 있다.
3. SAS code
proc npar1way data = your_data_name Wilcoxon;
class your_group_variable;
var your_outcome_varable;
run;
4. 실제 예
proc npar1way data = b2 Wilcoxon;
class p2; var sum_partici_year; run;
run;
(b2: 데이터, p2: 도시와 농촌, sum_partici_year : 조사 참여회수)
결과해석: 도시와 농촌의 조사참여회수를 알기위한 z 값은 0.12, p value 0.90으로 귀무가설 채택
참고:
https://speedspeed.tistory.com/207
https://angeloyeo.github.io/2021/11/17/ranksum.html#google_vignette
https://columbiabiostatbmi.github.io/Attachments/Recitation/Recitation%206/Rec_06_SAS.pdf
'My summary notes' 카테고리의 다른 글
연관성에 대한 카이 스퀘어 검정 (Chi-square test): 연관성 측정 포함 (0) | 2024.10.30 |
---|---|
MS 워드에서 표 안에 글자나 숫자들의 줄 간격을 좁히고 싶을때.. (1) | 2024.10.12 |
[윈도우 11 버전]에서 [그림판]의 [선 굵기] 조정하기 (2) | 2024.10.10 |
유병률의 개념 및 종류 (1) | 2024.09.20 |
공중보건학의 정의, 역사, 분야, Odds Ratio, and Relative Ratio (3) | 2023.11.28 |