General-to-Specific (GETS) Modelling of a dynamic Autoregressive (AR) logit model with covariates ('X') of class 'dlogitx'.
# S3 method for logitx
gets(x, t.pval = 0.05, wald.pval = t.pval, do.pet = TRUE,
user.diagnostics = NULL, keep = NULL, include.gum = FALSE,
include.1cut = TRUE, include.empty = FALSE, max.paths = NULL,
turbo = TRUE, print.searchinfo = TRUE, plot = NULL, alarm = FALSE,
...)
an object of class 'logitx', see logitx
numeric value between 0 and 1. The significance level used for the two-sided regressor significance t-tests
numeric value between 0 and 1. The significance level used for the Parsimonious Encompassing Tests (PETs). By default, it is the same as t.pval
logical
that determines whether a Parsimonious Encompassing Test (PET) against the GUM should be undertaken at each regressor removal for the joint significance of all the deleted regressors along the current path. If FALSE
, then a PET is not undertaken at each regressor removal
NULL
(default) or a list
with two entries, name
and pval
, see getsFun
NULL
or a vector of integers that determines which regressors to be excluded from removal in the specification search
logical
that determines whether the GUM (i.e. the starting model) should be included among the terminal models. If FALSE
(default), then the GUM is not included
logical
that determines whether the 1-cut model should be added to the list of terminal models. If FALSE
(default), then the 1-cut is not added, unless it is a terminal model in one of the paths
logical
that determines whether an empty model should be added to the list of terminal models, if it passes the diagnostic tests. If FALSE
(default), then the empty model is not added, unless it is a terminal model in one of the paths
NULL
(default) or an integer greater than 0. If NULL
, then there is no limit to the number of paths. If an integer (e.g. 1), then this integer constitutes the maximum number of paths searched (e.g. a single path)
logical
. If TRUE
(the default), then (parts of) paths are not searched twice (or more) unnecessarily, thus yielding a significant potential for speed-gain. The checking of whether the search has arrived at a point it has already been at comes with a slight computational overhead. So faster search is not guaranteed when turbo=TRUE
logical
. If TRUE
(default), then a print is returned whenever simiplification along a new path is started
NULL
or logical. If TRUE
, then a plot is produced. If NULL
(default), then the value set by options
determines whether a plot is produced or not
logical
. If TRUE
, then a sound or beep is emitted (in order to alert the user) when the model selection ends
further arguments passed to or from other methods
Genaro Sucarrat, http://www.sucarrat.net/
The model of class 'logitx' is a dynamic Autoregressive (AR) logit model with (optional) covariates ('X') proposed by Kauppi and Saikkonen (2008). Internally, gets.logitx
undertakes the General-to-Specific (GETS) modelling with the getsFun
function, see Sucarrat (2020).
Heikki Kauppi and Penti Saikkonen (2008): 'Predicting U.S. Recessions with Dynamic Binary Response Models'. The Review of Economic Statistics 90, pp. 777-791
logitx
, logitxSim
, coef.logitx
, getsFun
##simulate from ar(1), create covariates:
set.seed(123) #for reproducibility
y <- logitxSim(100, ar=0.3)
x <- matrix(rnorm(5*100), 100, 5)
##estimate model:
mymod <- logitx(y, ar=1:4, xreg=x)
##do gets modelling:
gets(mymod)
Run the code above in your browser using DataLab