Home ChungLab Wiki
    • 설명
    • 못 고치는 문서
    • Menu
      • Navigation
      • RecentChanges
      • FindPage
      • 사이트맵
      • Help
      • HelpContents
      • HelpOnMoinWikiSyntax
      • 보기
      • 첨부
      • 정보
      • 원문 보기
      • 인쇄용 화면
      • 수정
      • 로드
      • 저장
    • 로그인

    Navigation

    • FindPage
    • HelpContents
    • FunReading

    Upload page content

    You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

    File to load page content from
    Page name
    설명

    2020-09-23 21:39:53에 수정된 1번째 판
    • Class
    • Statistics
    • T-Test

    T.Test

    == Two-Sample T-Test

    Data 준비

    서울시 일별 평균 대기오염도 정보페이지에서 [내려받기(CSV)]를 클릭하여 자료를 내려받고 다음을 실행합니다.

       1 df <- read.csv(file.choose(), fileEncoding = 'euc-kr')
       2 df <- df[ grep('구$', df$측정소명), ]
       3 
       4 dust19 <- data.frame(month = as.factor('2019.11'),
       5                      pm10 = df[ grep('^201911', df$측정일시) , '미세먼지.....'  ])
       6 dust20 <- data.frame(month = as.factor('2020.05'),
       7                      pm10 = df[ grep('^202005', df$측정일시) , '미세먼지.....'  ])
       8 
       9 dust = rbind(dust19, dust20)
      10 summary(dust)
      11 boxplot(pm10 ~ month, data=dust, col=c('brown2','deepskyblue'))
    
    Copyright © ChungLab. Built on MoinMoin and Bootstrap. All Rights Reserved.