2015년 12월 27일 일요일

[real statistics] All of chi-squre test


at first down load this file here for nothing,




zoom out the sheet.
(1) what is chi- square test and Pearson and Yates
(2) chi-square distribution
(3) Odds ratio, Risk Ratio, Risk Difference and their 95% confidence interval
(4) Phi and Cramer's V
(5) some charts fit to chi- square test. you can copy and paste Word or PowerPoint and modify them easily.


(6) only fill new number Yellow Cells!!!! Do not change other cells



And Now we follow the old man's thought


we make the final number.
the number is "chi-square"
Who made this number? Pearson made it.
The son of Pear? Not actually he is the father of Statistics.

The larger this number, the bigger the difference between expected and observed.
This is Pearson's thought and it is reasonable.


Now he made a nice conclusion.
the possibility that two table is same = p
p=0.005~ so two table is not same.

One scholar named Yates made a small change the number X2
So we call this new number 'Yates X2'
'Yates X2' is more accurate when the cell is small.
if the cell is large, Two X2 get closer.

  
yes we say the possibility be p=0.005

but "How much different"
there are many ways
(1) odds ratio
(2) risk ratio(=relative risk)
(3) risk difference
(4) Cramer V and phi

you can choose one in your paper and power point.
(1) odds ratio
     usually for cross-sectional study
     odds itself ratio between two observation.
(2) risk ratio(=relative risk)
     usually for cohort study
     risk usually include observation after time(period)
(3) risk difference
     usually for cohort study
     risk usually include observation after time(period)
     relatively no so popular but increasing
     especially for non-inferiority test

all three are written with it 95% confidence interval


(4) Cramer V and phi
     two values are same (when 2X2 table)
     not so common
     similar to correlation coefficient



Three chart are easy to understand.
you can copy and paste in your paper(MS word) and slide(powerpoint)
and modify them











2015년 12월 19일 토요일

구에 무작위로 화살 꽂기-generating random points on a sphere







이것이 왜 필요할까요?
어떤 분이 질문하셨던 문제입니다. 

if you want to have this excel file...

https://drive.google.com/file/d/0B0ETb2rCxDW2a2hsQWdYR21zRlU/view?usp=sharing

it's free for your study.
==============================
let me think a ball(unit sphere, r=1)
if you choose random latitudes and random longitudes
it will result in an uneven distribution, 
with the density increasing as we get closer to the poles.
So I want make a map.
this will be easy for even a student to understand.

if there is a ball. which r=1
, the circle is as long as 2π
if you choose a point on surface, which has θ in latitudes
the horizontal diameter will be cosθ

and the new circle which the the point will have a length 2πcosθ

if you spread the surface of the ball flat, while maintain the area.
you will get this picture,
this is a identical to cosθ curve actually.


Now choose several points randomly
Point A is in red which means out of the Ball
Point B is in blue which means on the surface of the Ball
we will take Point B 
and ignore Point A

let me thick, Point X

if Point X =(x, y)
you will get this picture.


Can you get latitudes  and random longitudes?
it is easy enough, a school test.
x:2πcosy=x’:2π
then
x’=x/cosy





shortly

YOU can get 

































2015년 12월 7일 월요일

아빠가 들려 주는 [통계] logistic regression등 다변수 분석에서 단위 조심





독립변수들끼리 비교를 위해서는 
표준화 계수가 필요하다는 개념 설명.....

아빠가 들려 주는 [통계]logistic regression 준비작업과 산비도







웃기는 이름 산비도?
사실 산점도에 대비해서, 그냥 만들어본 이름이죠, 

어떤 분은 무슨 사이비 무술 이름 같다고 느끼실지도 모르죠?

그냥 회귀분석에서 산점도를 항상 그려 보아야 하듯이, 
비율도 그려 보아야 한다.. 로지스틱 회귀분석에서는...
그 정도로 이해하시면 좋겠습니다.

Father’s Story of [Statistics]
No P
-non inferiority trial-
Kim JeeHyoung
 

2015년 8월 26일 수요일

Diagnostic Criteria for Fibromyalgia 2010 from ACR

Diagnostic Criteria for Fibromyalgia 2010 from ACR

these are web calulators

http://kjhnav.dothome.co.kr/Diagnostic_Criteria_for_Fibromyalgia_2010.eng.php

shortly
http://me2.do/GBb5MZxy






==============================================
Diagnostic Criteria for Fibromyalgia 2010 from ACR
==============================================

1) Symptoms have been present at a similar level for at least 3 months.
2) The patient does not have a disorder that would otherwise explain the pain

----------------------------------------------
A WPI(Widespread pain index) - 0~19 points
--- Jaw : no -0 one side -1 both side -2

--- Neck : no -0 yes - 1

--- Shoulder girdle : no -0 one side -1 both side -2

--- Chest : no -0 yes -1

--- Abdomen : no -0 yes -1

--- Upper arm : no -0 one side -1 both side -2

--- Lower arm : no -0 one side -1 both side -2

--- Hip (buttock, trochanter): no -0 one side -1 both side -2

--- Upper leg : no -0 one side -1 both side -2

--- Lower leg : no -0 one side -1 both side -2

--- Upper back : no -0 yes -1

--- Lower back : no -0 yes - 1

B SS (symptom severity) - 0~12
--- Fatigue
no problem -0
slight or mild problems, generally mild or intermittent -1
moderate, considerable problems, often present and/or at a moderate level -2
severe: pervasive, continuous, life-disturbing problems -3

--- Waking unrefreshed
no problem -0
slight or mild problems, generally mild or intermittent -1
moderate, considerable problems, often present and/or at a moderate level -2
severe: pervasive, continuous, life-disturbing problems -3

--- Cognitive symptoms
no problem -0
slight or mild problems, generally mild or intermittent -1
moderate, considerable problems, often present and/or at a moderate level -2
severe: pervasive, continuous, life-disturbing problems -3

--- somatic symptoms
no symptoms -0
few symptoms -1
a moderate number of symptoms -2
a great deal of symptoms -3

(Somatic symptoms that might be considered.)
muscle pain, irritable bowel syndrome,
fatigue/tiredness, thinking or remembering problem,
muscle weakness, headache, pain/cramps in the abdomen,
numbness/tingling, dizziness, insomnia, depression,
constipation, pain in the upper abdomen,
nausea, nervousness, chest pain, blurred vision,
fever, diarrhea, dry mouth, itching, wheezing,
Raynaud’s phenomenon, hives/welts, ringing in ears,
vomiting, heartburn, oral ulcers,
loss of/change in taste, seizures, dry eyes,
shortness of breath, loss of appetite, rash,
sun sensitivity, hearing,difficulties,
easy bruising, hair loss, frequent urination,
painful urination, and bladder spasms.
---------------------------------
=================================

____________________ 

2015년 7월 28일 화요일


빠가 려 주는 [산기]
PSQI 수면장애척도
김지형 
이거 정말 계산하기 까다롭게 만들어진 설문지죠.
아니 답변하는 사람은 쉬운데,
채점하는 사람은 복잡한 설문지....

그래서 만들었습니다. 
링크를 클릭해 보세요. 

결과물은 이렇게 보여 집니다.
 

2015년 7월 15일 수요일

빠가 려 주는 []
P값은 필요 없다?
-비열등성 검정-
김지형


p값보다 95% 신뢰구간을 위주로 하는 통계법
비열등성 검정에서 주로 그렇게 하죠.

그리고, 비열등성 검정의 기본적인 개념을 이해하지 못하는
경우를 최근에도 보았기 때문에 급히 만들어 보았습니다.

그냥 p값이 0.05보다 크면 차이가 없는 거 아냐?
라고 하시면 안되죵.

line_characters_in_love-20
이건 p값의 의미를 모르고 있다는 것과

동시에 비열등성 검정이 뭔지 모른다는 것을
폭로하는 것임
brown_and_cony-22
비열등성 검정에 대해서,
특히 카이제곱인 경우에,
t-test인 경우에,
생존분석인 경우에
각각 통계법을 어떻게 사용하는지..
공부해 보심이 좋을 듯하군요.
이 주제로 제가 이전에 쓴 책이 있긴 하지만,
여기서 이야기하면
책 장수 같은 느낌이 들어서....생략

Father’s Story of [Statistics]
Expression for statistics
-example of NEJM-
Kim Jeehyoung

2015년 7월 14일 화요일


빠가 려 주는 []
통계 방법 영어로 표현하기
-NEJM을 예제로-
김지형



적절히 변형해서 사용하세요. 그대로 copy하지는 마시고...

2015년 7월 11일 토요일

[의학 계산기] 당신이 당뇨병일 가능성은 얼마나 될까?
 

미진단 당뇨 계산기

단축 URL : http://me2.do/Fi6rzUKu


A Simple Screening Score for Diabetes for the Korean Population: Development, validation,and comparison with other scores

Diabetes Care. 2012;35(8):1723-1730. doi:10.2337/dc11-2347.

라는 논문을 근거로 만든 것입니다.


과거의 자료를 바탕으로 만든 것이라 정확할 수는 없지만,

한국인을 기준으로 만든 자료이므로 최선의 예측이기를 바라고,

모두 당뇨를 예방하시기 바랍니다.





2015년 7월 9일 목요일

​[통계] P값의 함정에서 빠져 나오려면



5분밖에 안되는 영상..

논문 쓰시는 분은 꼭 보시면 좋겠습니다.


그리고, 마지막 시간이 짤려서 못한 말..


카이제곱 검정도 역시 P값이 충분히 작더라도,

n수가 무지무지 커지면,

임상적으로 차이가 별로 없는

즉 예를 들면 오즈비가 1.03정도 밖에 차이 나지 않는데,

통계적으로 의미있다고 보여 질 수도 있다는 것입니다.


그러므로 요약하면, P값과 함께

적절한 통계량의 95%신뢰구간도 같이 보여 주어라..


그것이 저의 요점이구요.


전통적으로 카이제곱은 오즈비 또는 상대위험도의 신뢰구간을 많이 보여 주었는데,

요즘 위험도차(RD)도 자주 보여 주는 것같습니다.


통계프로그램에서 RD의 신뢰구간을 보여 주는 경우 적으니,

제 엑셀 파일을 이용하면 되겠죠.