댓글 리스트
-
답댓글 작성자 DrAhn 작성시간14.06.27 저도 책에서 install.packages("multcomp") 보고 입력했더니
Warning message:
package ‘mulcomp’ is not available (for R version 3.1.0)
라고 뜨네요.
그래서 바로 위에 써주신
install.packages("multcomp")
library(multcomp)
out = lm(weight ~ group, data=PlantGrowth)
dunnett = glht(out,linfct=mcp(group="Dunnett"))
복사하고 엔터 치니깐 되네요. 왜그런거죠?
-
작성자 NiKe 작성시간14.08.19 안선생님 질문있습니다!
13장에 Kruskal-Wallis test 가 one-way ANOVA 의 비모수 방법이라고 하셨는데, 그럼 one-way ANOVA의 회귀진단으로부터 잔차의 가정이 만족되지 않는경우에 Kruskal-Wallis test를 쓰는게 아닌가요? 12장에서 PlantGrowth 데이터를 이용해서 weight~group로 lm하고 plot(out)과 shapiro.test(resid(out))으로 잔차의 가정을 체크했을 때 모두 만족되었었는데, 13장에서 왜 weight~group 으로 Kruskal-Wallis test를 하는 건가 해서요...답변 주시면 감사하겠습니다! -
작성자 곽대현 작성시간22.11.09 안녕하세요,
12.5에서
dunnett = glht(out,linfct=mcp(group="Dunnett"))
명령어를 실행하면
Error in glht(out, linfct = mcp(group = "Dunnett")) :
could not find function "glht"
Error in mcp2matrix(model, linfct = linfct) :
Variable(s) ‘group’ of class ‘character’ is/are not contained as a factor in ‘model’.
라고 오류가 나오는데요, 왜그런지 알 수 있을까요?
해결법도 궁금합니다.