2010-02-18 2 views
3

여러 그룹을 비교 (테스트)하고자 할 때 (예를 들어, anova를 할 때와 같이) 다중 비교 문제에 직면합니다. 우리가 비교를 계획하고 싶다면 동일하게 적용됩니다.다중 비교의 플로팅?

내 질문에 따라서 여러 비교를 반영하는 플로팅을 허용하는 도구는 무엇입니까? 현재

, 나는 (내가 확신하지만 더있다) 두 알고 : 방법의 상자 그림은 "노치" 을 선택

  • 플롯()와 함께

    1. TukeyHSD을()
  • 답변

    3

    몇 가지 방법은 ... 통계 분석 (웹 사이트)의 R-프로젝트 핸드북에서 동시 추론에 대한 기사가

    http://www.r-bloggers.com/multiple-comparisons-for-glmms-using-glmer-glht/

    GLMS에서 다중 비교를 위해 주변에있다

    http://cran.r-project.org/web/packages/HSAUR2/vignettes/Ch_simultaneous_inference.pdf

    gplot 패키지의 plotmeans(). 그것은 신뢰 구간을 포함합니다.

    그러면 "psych"패키지의 error.bars.by() 함수가 있습니다. 데이터 프레임에서 평균과 SD를 그룹별로 표시합니다.

    일부는 시각화를 위해 밀도 플롯을 사용합니다.

    # Compare MPG distributions for cars with 
    # 4,6, or 8 cylinders 
    library(sm) 
    attach(mtcars) 
    
    # create value labels 
    cyl.f <- factor(cyl, levels= c(4,6,8), 
        labels = c("4 cylinder", "6 cylinder", "8 cylinder")) 
    
    # plot densities 
    sm.density.compare(mpg, cyl, xlab="Miles Per Gallon") 
    title(main="MPG Distribution by Car Cylinders") 
    
    # add legend via mouse click 
    colfill<-c(2:(2+length(levels(cyl.f)))) 
    legend(locator(1), levels(cyl.f), fill=colfill) 
    
    4

    패키지 multcompplot.cld() - 당신이

    library(multcomp) 
    example(plot.cld) 
    

    는 또한, http://rseek.org에 잠깐 "다중 비교 음모"검색 이상의 패키지 및 작업보기 몇 가지를 보여 시도 할 수 있습니다.

    +0

    감사합니다. Dirk. 나는 그들을 보일 것이다. –