f.robftest.RdCompute a robust F-Test, i.e., a Wald test for multiple coefficients
of an rlm object.
f.robftest(object, var = -1)result of rlm().
variables. Either their names or their indices; the
default, -1 means all but the intercept.
This builds heavily on summary.rlm(), the
summary method for rlm results.
An object of class "htest", hence with the standard print
methods for hypothesis tests. This is basically a list with components
the F statistic, according to ...
numerator and denominator degrees of freedom.
(extracted from input object.)
"two.sided", always.
the P-value, using an F-test on statistic and
df[1:2].
FIXME — Need some here !
rlm, summary.aov, etc.
if(require("MASS")) {
## same data as example(rlm)
data(stackloss)
summary(rsl <- rlm(stack.loss ~ ., stackloss))
f.robftest(rsl)
} else " forget it "
#> Loading required package: MASS
#>
#> robust F-test (as if non-random weights)
#>
#> data: from rlm(formula = stack.loss ~ ., data = stackloss)
#> F = 90.189, p-value = 1.212e-10
#> alternative hypothesis: two.sided
#> null values:
#> Air.Flow Water.Temp Acid.Conc.
#> 0 0 0
#>