standard deviation of innovations in first sequence
sd_delta
standard deviation of innovations in residual sequence
X0
initial value of first sequence
Y0
initial value of second sequence
Value
Returns a two-column data.frame containing the randomly generated
cointegrated sequences.
Details
Generates a random pair of cointegrated sequences. The sequences are constructed
by first generating two random sequences that are independent and normally distributed.
The elements of the first sequence, $epsilon[i]$,
have standard deviation sd_eps,
while those of the second sequence, $delta[i]$,
have standard deviation sd_delta.
Having generated these two sequences, the cointegrated sequences X[i] and
Y[i] are generated according to the following relations:
$$X[i] = X[i-1] + \epsilon[i]$$
$$R[i] = \rho R[i-1] + \delta[i]$$
$$Y[i] = \alpha + \beta X[i] + R[i]$$