来自ancboot
包的函数WRS
执行单向ANCOVA,其中一个协变量使用20%修剪均值和自举:
ancboot(formula, data, tr = 0.2, nboot = 599, sm = FALSE, fr1 = 1, fr2 = 1,
pr = TRUE, pts = NA)
该命令返回类ancova
的对象,其中包含5个设计点的修剪均值:
[1] "Note: confidence intervals are adjusted to control FWE"
[1] "But p-values are not adjusted to control FWE"
[1] "Taking bootstrap samples. Please wait."
$output
X n1 n2 DIF TEST ci.low ci.hi p.value
[1,] 2 15 30 -1.277778 -1.846494 -3.234577 0.6790212 0.0855
[2,] 4 38 50 -1.066667 -2.139515 -2.476449 0.3431158 0.0440
[3,] 4 38 50 -1.066667 -2.139515 -2.476449 0.3431158 0.0335
[4,] 5 42 50 -1.092308 -2.256915 -2.460882 0.2762670 0.0320
[5,] 6 25 41 -1.333333 -2.341798 -2.943341 0.2766743 0.0300
$crit
[1] 2.8277
然而,我原本期望报告强大的ANCOVA非常像传统的(参数)ANCOVA,包括综合 p 值,95%CI, F 和[ DF]。如何通过强大的ANCOVA获得所需的输出(即,使用修剪均值和自举)?