global_optimise_LM_stnarpq {PNAR} | R Documentation |
Optimization of the score test statistic for the ST-PNAR(p) model
Description
Global optimization of the linearity test statistic for the Smooth Transition
Poisson Network Autoregressive model of order with
covariates
(ST-PNAR(
)) with respect to the nuisance scale parameter
.
Usage
global_optimise_LM_stnarpq(gama_L = NULL, gama_U = NULL, len = 10, b, y, W,
p, d, Z = NULL, tol = 1e-9)
Arguments
gama_L |
The lower value of the |
gama_U |
The upper value of the |
len |
The number of increments to consider for the |
b |
The estimated parameters from the linear model, in the following order:
(intercept, network parameters, autoregressive parameters, covariates).
The length of the vector should be |
y |
A |
W |
The |
p |
The number of lags in the model. |
d |
The lag parameter of non-linear variable (should be between 1 and |
Z |
An |
tol |
Tolerance level for the optimizer. |
Details
The function optimizes the quasi score test statistic, under the null assumption of linearity, for testing linearity of Poisson Network Autoregressive model of order against the following ST-PNAR(
) model, with respect to the unknown nuisance parameter (
). For each node of the network
over the time sample
where is the network effect, i.e. the weighted average impact of node
connections, with the weights of the mean being
, the single element of the network matrix
. The sequence
is the expectation of
, conditional to its past values.
The null hypothesis of the test is defined as , versus the alternative that at least one among
is not 0. The test statistic has the form
where
is the partition of the quasi score related to the vector of non-linear parameters , evaluated at the estimated parameters
under the null assumption
(linear model) and
is the variance of
.
The optimization employes the Brent algorithm (Brent, 1973) applied in the interval from gama_L
to gama_U
. To be sure that the global optimum is found, the optimization is performed at (len
-1) consecutive equidistant sub-intervals and then the maximum over them is taken as global optimum.
The values of gama_L
and gama_U
are computed internally as gama_L
and
gama_U
, where
is the overall mean of
over the nodes
and times
. Since the non-linear function
ranges between 0 and 1, by considering
to be a representative value for the network mean,
gama_U
and gama_L
would be the values of leading the non-linear switching function to be 0.1 and 0.9, respectively, so that in the optimization procedure the extremes of the function domain are excluded. Alternatively, their value can be supplied by the user. For details see Armillotta and Fokianos (2022b, Sec. 4-5).
Value
A list including:
gama |
The optimum value of the |
supLM |
The value of the objective function at the optimum. |
int |
A vector with the extremes points of sub-intervals. |
Author(s)
Mirko Armillotta, Michail Tsagris and Konstantinos Fokianos.
References
Armillotta, M. and K. Fokianos (2022a). Poisson network autoregression. https://arxiv.org/abs/2104.06296
Armillotta, M. and K. Fokianos (2022b). Testing linearity for network autoregressive models. https://arxiv.org/abs/2202.03852
Armillotta, M., Tsagris, M. and Fokianos, K. (2022c). The R-package PNAR for modelling count network time series. https://arxiv.org/abs/2211.02582
Brent, R. (1973) Algorithms for Minimization without Derivatives. Prentice-Hall, Englewood Cliffs N.J.
See Also
score_test_stnarpq_j, global_optimise_LM_tnarpq,
score_test_tnarpq_j
Examples
data(crime)
data(crime_W)
mod1 <- lin_estimnarpq(crime, crime_W, p = 1)
b <- mod1$coefs[, 1]
global_optimise_LM_stnarpq(b = b, y = crime, W = crime_W, p = 1, d = 1)