score_test_stnarpq_DV {PNAR} | R Documentation |
Bound p-value for testing for smooth transition effects on PNAR(p) model
Description
Computation of Davies bound p-value for the sup-type test for testing linearity
of Poisson Network Autoregressive model of order (PNAR(
)) versus
the non-linear Smooth Transition alternative (ST-PNAR(
)).
Usage
score_test_stnarpq_DV(b, y, W, p, d, Z = NULL, gama_L = NULL,
gama_U = NULL, len = 100)
Arguments
b |
The estimated parameters from the linear model, in the following order:
(intercept, network parameters, autoregressive parameters, covariates).
The dimension 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 |
gama_L |
The lower value of the nuisance parameter |
gama_U |
The upper value of the nuisance parameter |
len |
The length of the grid of values of |
Details
The function computes an upper-bound for the p-value of the sup-type test for testing linearity of Poisson Network
Autoregressive model of order (PNAR(
)) versus the following Smooth Transition alternative (ST-PNAR(
)).
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
. Since the test statistic depends on an unknown nuisance parameter (
), the supremum of the statistic is considered in the test,
. The function computes the bound of the p-value, suggested by Davies (1987), for the test statistic
, with scalar nuisance parameter
, as follows.
where is the maximum of the test statistic
, computed by the available sample, over a grid of values for the nuisance parameter
;
is the number of non-linear parameters tested. So the first summand of the bound is just the p-value of a chi-square test with
degrees of freedom. The second summand is a correction term depending on
, which is the approximated total variation computed as
The feasible bound allows to approximate the p-values of the sup-type test in a straightforward way, by adding to the tail probability of a chi-square distribution a correction term which depends on the total variation of the process. For details see Armillotta and Fokianos (2022b, Sec. 5).
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 values can be supplied by the user.
Value
A list including:
DV |
The Davies bound of p-values for sup test. |
supLM |
The value of the sup test statistic in the sample |
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
Davies, R. B. (1987). Hypothesis testing when a nuisance parameter is present only under the alternative. Biometrika 74, 33-43.
Armillotta, M., Tsagris, M. and Fokianos, K. (2022c). The R-package PNAR for modelling count network time series. https://arxiv.org/abs/2211.02582
See Also
score_test_stnarpq_j, global_optimise_LM_stnarpq
Examples
data(crime)
data(crime_W)
mod1 <- lin_estimnarpq(crime, crime_W, p = 1)
ca <- mod1$coefs[, 1]
score_test_stnarpq_DV(ca, crime, crime_W, p = 1, d = 1)