powered by
Compute all the single terms in the scope argument that can be added to the GWRM model, fit those models and compute a table of the changes in fit.
# S3 method for gw add1(object, scope, test = c("none", "Chisq"), k = 2, trace = FALSE, ...)
a fitted object of class inheriting from "gw".
"gw"
a formula giving the terms to be considered for adding.
"none", which considers the AIC criterion, or Chisq, which is the likelihood-ratio test.
"none"
Chisq
the penalty constant in AIC / Cp.
if TRUE, print out progress reports.
TRUE
further arguments passed to or from other methods.
An object of class "anova" summarizing the differences in fit between the models.
"anova"
# NOT RUN { data(goals) fit0 <- gw(goals ~ offset(log(played)), data = goals) summary(fit0) fit1 <- add1(fit0, ~ position) summary(fit1) # }
Run the code above in your browser using DataLab