我想提取從PR值p值(> | T |)列如何提取 「summary.glht」
library(lsmeans)
warp.lm = lm(breaks ~ wool * tension, data = warpbreaks)
toP<-lsmeans(warp.lm, pairwise ~ wool | tension, glhargs=list())
toP[[2]]
Simultaneous Tests for General Linear Hypotheses
Fit: lm(formula = breaks ~ wool * tension, data = warpbreaks)
Linear Hypotheses:
Estimate Std. Error t value Pr(>|t|)
A - B | L == 0 16.333 5.157 3.167 0.00797 **
A - B | M == 0 -4.778 5.157 -0.926 0.73187
A - B | H == 0 5.778 5.157 1.120 0.60282
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
(Adjusted p values reported -- single-step method)
如何做到這一點? class(toP[[2]])
說它"summary.glht" "glht"
。在頂部有$ p值[[2]] [9],但頂部[[2]] [9] $ p值給NULL
任何建議,以提取ph值從'glht()'對象['庫multicomp)']?謝謝!! – Rafael 2014-08-05 06:21:33