## NOT RUN
#
## Simulation of 10 two-way panels
## y_{it} = (-1-0.2*x_{it})1(y_{it-1}<=0) + (1+0.2*x_{it})1(y_{it-1}>0)
## with 50 statistical units observed for 50 times with change point at
## time 20, autoregressive parameter 0.7, and sigmau=1.
#
DB1 <- simptm(n=50, T.=11, J=1, CP=8, gamma.=0, phi_c=matrix(c(-1,1),
nrow=1, byrow=TRUE), phi_X=matrix(c(-0.2,0.2), nrow=1, byrow=TRUE),
sigmau=1, parAR=0.7, B=10, seedstart=1)
#head(DB1@simulation)
#str(DB1@simulation)
## Simulation of 10 three-way panels
## y_{i1t} = (-1-0.2*x_{i1t})1(y_{i1t-1}<=0) +
## (1+0.2*x_{i1t})1(y_{i1t-1}>0)
## y_{i2t} = (-0.7-0.5*x_{i2t})1(y_{i2t-1}<=0) +
## (1.8+0.8*x_{i2t})1(y_{i2t-1}>0)
## with 50 statistical units, 50 times, J=2, change point corresponding to
## time 20, with autoregressive parameter 0.7, and sigmau=1.
#
#DB2 <- simptm(n=50, T.=20, J=2, CP=10, gamma.=c(0,0),
# phi_c=matrix(c(-1,1,-0.7,1.8), nrow=2, byrow=TRUE),
# phi_X=matrix(c(-0.2,0.2,-0.5,0.8), nrow=2, byrow=TRUE), sigmau=1,
# parAR=rep(0.7,2), B=5, seedstart=1)
#head(DB2@simulation)
#str(DB2@simulation)
#
##
Run the code above in your browser using DataLab