ar2_correlation_matrix: compute the correlation matrix of a time series generated by...

View source: R/placebo-simulations.R

ar2_correlation_matrixR Documentation

compute the correlation matrix of a time series generated by an ar2 model

Description

compute the correlation matrix of a time series generated by an ar2 model

Usage

ar2_correlation_matrix(ar_coef, T)

Arguments

ar_coef,

the coefficients of the ar2 model: c(lag-1-coefficient, lag-2-coefficient)

T,

the length of the time series

Value

the correlation matrix


synth-inference/synthdid documentation built on Jan. 26, 2024, 7:21 a.m.