poisson.MODpq {PNAR} | R Documentation |
Generation of counts from a linear Poisson NAR(p) model with q covariates (PNAR(p))
Description
Generation of multivariate count time series from a linear Poisson Network Autoregressive
model of order with
covariates (PNAR(
)).
Usage
poisson.MODpq(b, W, p, Z = NULL, TT, N, copula = "gaussian",
corrtype = "equicorrelation", rho, dof = 1)
Arguments
b |
The coefficients of the model, in the following order: (intercept, network
parameters, autoregressive parameters, covariates). The dimension of the vector
should be |
W |
The |
p |
The number of lags in the model. |
Z |
An |
TT |
The temporal sample size. |
N |
The number of nodes on the network. |
copula |
Which copula function to use? The choices are "gaussian", "t", or "clayton". |
rho |
The value of the copula parameter ( |
corrtype |
Used only for elliptical copulas. The type of correlation matrix employed for
the copula; it will either be the "equicorrelation" or "toeplitz". The
"equicorrelation" option generates a correlation matrix where all the off-diagonal
entries equal |
dof |
The degrees of freedom for Student's t copula. |
Details
This function generates counts from a linear Poisson NAR() model, where
non time-varying
covariates are allowed as well. The counts are simulated from
, where
is a sequence of
-dimensional IID Poisson count processes, with intensity 1, and
whose structure of dependence is modelled through a copula construction
on their associated exponential waiting times random variables. For details see Armillotta and Fokianos (2022, Sec. 2.1-2.2).
The sequence is the expectation of
, conditional to its past values and it is generated by means of the following PNAR(
) model. 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 parameter
is the intercept of the model,
are the network coefficients,
are the autoregressive parameters, and
are the coefficients assocciated to the covariates
.
Value
A list including:
p2R |
The Toeplitz correlation matrix, if employed in the copula or NULL else. |
lambda |
A |
y |
A |
Author(s)
Mirko Armillotta, Michail Tsagris and Konstantinos Fokianos.
References
Armillotta, M. and K. Fokianos (2022). Poisson network autoregression. https://arxiv.org/abs/2104.06296
Fokianos, K., Stove, B., Tjostheim, D., and P. Doukhan (2020). Multivariate count autoregression. Bernoulli, 26(1), 471-499.
See Also
poisson.MODpq.log, poisson.MODpq.nonlin,
poisson.MODpq.stnar, poisson.MODpq.tnar
Examples
W <- adja( N = 20, K = 5, alpha= 0.5)
y <- poisson.MODpq( b = c(0.5, 0.3, 0.2), W = W, p = 1, Z = NULL,
TT = 1000, N = 20, copula = "gaussian",
corrtype = "equicorrelation", rho = 0.5)$y