SimpleSimulationVLtimeseries {VLTimeCausality} | R Documentation |
SimpleSimulationVLtimeseries
Description
SimpleSimulationVLtimeseries is a support function for generating time series X,Y
where X
VL-Granger-causes Y
.
Usage
SimpleSimulationVLtimeseries(
n = 200,
lag = 5,
YstFixInx = 110,
YfnFixInx = 170,
XpointFixInx = 100,
arimaFlag = TRUE,
seedVal = -1,
expflag = FALSE,
causalFlag = TRUE
)
Arguments
n |
is length of time series. |
lag |
is a time lag between |
YstFixInx |
is the starting point of variable lag part. |
YfnFixInx |
is the end point of variable lag part. |
XpointFixInx |
is a point in X s.t. |
arimaFlag |
is ARMA model flag. If it is true, then |
seedVal |
is a seed parameter for generating random noise.
If it is not -1, then the rnorm is set the random seed with |
expflag |
is the flag to set the relation between |
causalFlag |
is a flag. If it is true, then |
Value
This function returns a list of time series X,Y
where X
VL-Granger-causes Y
.
Examples
# Generate simulation data
TS <- SimpleSimulationVLtimeseries()