introduction to biostatistics prof. ho kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf ·...

12
Introduction to Biostatistics Prof. Ho Kim (김호) lecture Mon 13:00-15:00 18:30-20:30 lab Mon 15:00-17:00 20:30-22:30 보건 통계학 개론 (원성호, 김호 저) 경문사 slide files are available at http://hosting03.snu.ac.kr/~hokim

Upload: others

Post on 14-Feb-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

Introduction to BiostatisticsProf. Ho Kim (김호)

lecture Mon 13:00-15:00 18:30-20:30lab Mon 15:00-17:00 20:30-22:30

보건 통계학 개론 (원성호, 김호 저) 경문사

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/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

• 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/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

Statistical Software (SAS and R)

case-sensitive

Page 4: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and
Page 5: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.1 R 소개

1. 무료 소프트웨어

2. 다양한 패키지

3. 설치의 편리성

4. 강력한 그래픽스 기능

5. 광범위한 참고자료

Page 6: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.2 R의 공식 홈페이지

• 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/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.3 R의 구성

Page 8: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.4 R의 패키지 설치

1. R-base 패키지

2. R-recommended 패키지

3. 기타 패키지

Page 9: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.5 R의 help 명령어

• help(함수)

• help(package=ptr)

• apropos(문자열)

• help.search(문자열)

Page 10: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.6 R의 기초 문법

• R의 수학연산자

Page 11: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.6 R의 기초 문법

• R에서 제공하는 수학함수의 예

Page 12: Introduction to Biostatistics Prof. Ho Kim (김호hosting03.snu.ac.kr/~hokim/int/2018/chap_0.pdf · 2018-02-27 · R-b10¥ers R tudio ree & Open Sowce IDE for R RStudio: a free and

0.6 R의 기초 문법

• 문자변수의 생성

① 객체의 이름은 반드시 영문자 혹은 마침표(.)로 시작해야 한다

② 객체의 이름은 숫자를 포함할 수 있다. 그러나 객체의 이름이 숫자로 시작하면 안 된다.

③ 대소문자를 구분한다. 즉, mydata와 MyData는 서로다른 문자변수로 인식한다.

④ 밑줄(_)은 가급적이면 객체이름으로 사용하지 않는것이 좋다.

• 결측값의 처리 NA NaN

• 주석