Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf ·...
Transcript of Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf ·...
![Page 1: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/1.jpg)
Introduction to BiostatisticsProf. Ho Kim (김호)
lecture Mon 13:00-15:00 18:30-20:30lab Mon 15:00-17:00 20:30-22:30
보건 통계학 개론 (원성호, 김호 저) 경문사Biostatistics: A Foundation for Analysis in the Health Sciences, W.W. Daniel, Wiley
slide files are available at http://hosting03.snu.ac.kr/~hokim
![Page 2: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/2.jpg)
• We will learn
– Basic concepts of statistics
– Application to public health researches
– Statistical software (SAS and R)
• All problems of the textbook are assignments.
• Due on the next lecture (One week later)
• Home works (30)%, midterm exam (30%), final exam (30%), etc (10%)
• Office hour 16:00-18:30 on Monday at 221-209 or 220-706
![Page 3: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/3.jpg)
Statistical Software (SAS and R)
case-sensitive
![Page 4: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/4.jpg)
![Page 5: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/5.jpg)
0.1 R 소개 (introduction)
1. 무료 소프트웨어 (free software)
2. 다양한 패키지 (packages)
3. 설치의 편리성 (easy to install and maintain)
4. 강력한 그래픽스 기능 (graphics)
5. 광범위한 참고자료 (free references)
![Page 6: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/6.jpg)
0.2 R의 공식 홈페이지(Official Homepage)
• http://www.r-project.org
• R studio http://www.rstudio.com
![Page 7: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/7.jpg)
0.3 R의 구성 (Screenshot)
![Page 8: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/8.jpg)
0.4 R의 패키지 설치 (installing)
1. R-base package
2. R-recommended package
3. etc
![Page 9: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/9.jpg)
0.5 R의 help 명령어
• help(function)
• help(package=ptr)
• apropos(“string”)
• help.search(“string”)
![Page 10: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/10.jpg)
0.6 R의 기초 문법 (basics)
• R의 수학연산자 (mathematical operator)
![Page 11: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/11.jpg)
0.6 R의 기초 문법 (basics)
• R에서 제공하는 수학함수의 예
(examples of mathematical functions)
![Page 12: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/12.jpg)
0.6 R의 기초 문법 (basics)
• 문자변수의 생성 (creating a variable)
① 객체의 이름은 반드시 영문자 혹은 마침표(.)로 시작해야 한다 (name of an object starts with a character or .)
② 객체의 이름은 숫자를 포함할 수 있다. 그러나 객체의 이름이 숫자로 시작하면 안 된다. (may include a number, but cannot start with a number)
③ 대소문자를 구분한다. (case-sensitive) 즉, mydata와 MyData는 서로 다른 문자변수로 인식한다. (they are different)
④ 밑줄(_)은 가급적이면 객체이름으로 사용하지 않는것이 좋다. (avoid _ for an object’s name)
![Page 13: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2017/chap_0.pdf · 2017-03-06 · Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon](https://reader033.fdocuments.net/reader033/viewer/2022053017/5f1c1b69e654675f4c0f5056/html5/thumbnails/13.jpg)
0.6 R의 기초 문법 (basics)
• 결측값의 처리 (missing value) NA NaN
• 주석 (comments) : #