DepNHCPSP {IndTestPP} | R Documentation |
Generating a Common Poisson Shock Process
Description
This function generates the marginal processes of a Common Poisson Shock Process,
which are
dependent Poisson processes.
Both homogeneous and nonhomogeneous processes can be generated. In the case
,
the processes can be optionally plotted.
Usage
DepNHCPSP(lambdaiM, d,dplot=TRUE, pmfrow=c(2,1), fixed.seed = NULL, ...)
Arguments
lambdaiM |
Matrix. Each column contains the intensity values of a indicator process . |
d |
Numeric value. Dimension (number of marginal processes) of the CPSP. |
dplot |
Optional. A logical flag. If it is TRUE and d=2, the marginal and indicator processes are plotted. |
pmfrow |
Optional. A vector of the form (nr, nc) to be supplied as argument |
fixed.seed |
Optional. An integer or NULL. Value used to set the seed in random generation processes; if it is NULL, a random seed is used. |
... |
Further arguments to be passed to the function |
Details
A CPSP is usually specified by its marginal, and possibly dependent, processes
,
...,
, which are the observed processes. However,
can be decomposed into
m independent indicator processes:
,
, ...,
, ...,
,
which are the processes of the points occurring
only in the first marginal process, only in the second,..., simultaneously in the two first marginal processes, ...
and in all the marginal processes simultaneously. The number of indicator processes is m, the sum of
n choose i for
. The value m must also be the number of columns of the matrix in argument
lambdaiM
.
The marginal process is obtained as the union of all the indicator processes where the index i appears,
. The intensity of
is the sum of the intensities of all the indicator processes
.
The decomposition into indicator processes can be readily applied for the generation of a CPSP: it reduces to the generation of m independet PPs, see Cebrian et al. (2020) for details. Points are generated in continuous time.
In order to generate d independent Poisson processes, the function IndNHPP
has be used.
In the bivariate case , the points in the marginal
,
and indicator
,
and
processes can be optionally plotted.
Value
A list with elements
posNH |
A list of d vectors containing the occurrence points of the d marginal processes. The name of the elements of the list are N1, N2...,Nd. |
posNHG |
A list of m vectors containing the occurrence points of the m indicator processes. |
lambdaM |
Matrix. Each column is the intensity vector of a marginal process. |
References
Abaurrea, J. Asin, J. and Cebrian, A.C. (2015). Modeling and projecting the occurrence of bivariate extreme heat events using a nonhomogeneous common Poisson shock process. Stochastic and Environmental Research and risk assessment, 29(1), 309-322.
Cebrian, A.C., Abaurrea, J. and Asin, J. (2020). Testing independence between two point processes in time. Journal of Simulation and Computational Statistics.
See Also
DepNHNeyScot
, DepNHPPqueue
, DepNHPPMarked
, IndNHPP
Examples
set.seed(123)
lambdai1<-runif(200,0,0.1)
set.seed(124)
lambdai2<-runif(200,0,0.07)
set.seed(125)
lambdai12<-runif(200,0,0.05)
set.seed(126)
lambdai123<-runif(200,0,0.01)
lambdaiM<-cbind(lambdai1, lambdai2,lambdai1, lambdai12, lambdai12, lambdai12, lambdai123)
aux<-DepNHCPSP(lambdaiM=lambdaiM, d=3, fixed.seed=123)
#lambdaiM<-cbind(lambdai1, lambdai2, lambdai12)
#aux<-DepNHCPSP(lambdaiM=lambdaiM, d=2,fixed.seed=123, dplot=TRUE)