gefp(..., fit = glm, scores = estfun, vcov = NULL,
decorrelate = TRUE, sandwich = TRUE, order.by = NULL,
fitArgs = NULL, parm = NULL, data = list())data to the fit function: fm <- fit(..., data = data).
If fit is set to NULL the first argument ...
is ascores(fm).vcov(fm, order.by = order.by, data = data).vcov the sandwich
estimator or only the middle part?z or a formula with a single explanatory
variable like ~ z. The observations in the model
are ordered by the size of z. If set to NULL (the
default) the observations are assumfit function. Usually, this is not needed and ...
will be sufficient to pass arguments to fit....
specification and the order.by model. By default the variables are
taken from the environment which gefp is called from.gefp returns a list of class "gefp" with components inlcuding
"zoo",}Zeileis A. (2004), Implementing a Class of Structural Change Tests: An
Econometric Computing Approach. Report 7, Department of Statistics and Mathematics,
Wirtschaftsuniversit�t Wien, Research Report Series,
efp, efpFunctionalif("package:sandwich" %in% search() || require(sandwich)) {
data(BostonHomicide)
gcus <- gefp(homicides ~ 1, family = poisson, vcov = kernHAC,
data = BostonHomicide)
plot(gcus, aggregate = FALSE)
gcus
sctest(gcus)
}Run the code above in your browser using DataLab