| caustests_data | R Documentation |
A simulated dataset containing three time series variables for demonstrating Granger causality tests. The data includes one dependent variable (Y) and two potential causal variables (X1, X2) with known causal relationships.
caustests_data
A data frame with 200 observations and 3 variables:
Dependent variable, generated as AR(2) plus causal effects from X1
First explanatory variable, AR(1) process
Second explanatory variable, independent AR(1) process
The data generating process is:
X1 and X2 are independent AR(1) processes
Y depends on its own lags plus lagged values of X1 (but not X2)
This creates a true causal relationship from X1 to Y
There is no true causality from X2 to Y or from Y to X1/X2
This allows users to verify that the causality tests correctly identify the causal direction X1 => Y while finding no significant causality in other directions (with appropriate sample sizes and test settings).
Simulated data for package demonstration
data(caustests_data)
head(caustests_data)
summary(caustests_data)
# Check correlations
cor(caustests_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.