drop1.gw {GWRM} | R Documentation |
Drop All Possible Single Terms to a GWRM Model
Description
Compute all the single terms in the scope argument that can be dropped from the GWRM model, fit those models and compute a table of the changes in fit.
Usage
## S3 method for class 'gw'
drop1(object, scope, test = c("none", "Chisq"), k = 2, trace = FALSE, ...)
Arguments
object |
a fitted object of class inheriting from |
scope |
a formula giving the terms to be considered for dropping. |
test |
|
k |
the penalty constant in AIC / Cp. |
trace |
if |
... |
further arguments passed to or from other methods. |
Value
An object of class "anova"
summarizing the differences in fit between the models.
Examples
data(goals)
fit0 <- gw(goals ~ offset(log(played)), data = goals)
summary(fit0)
fit1 <- step(fit0, ~ position)
summary(fit1)
[Package GWRM version 2.1.0.4 Index]