Natural spline interpolation on covariance
cov_spline.RdThe cov_spline function is used to perform natural spline interpolation on the covariance matrix.
Arguments
- cov
a numeric square matrix of raw covariance. It must not contain missing values.
- grid
a numeric vector of grid, at which the raw covariance is calculated.
- n_intrpl
the number of points at which the covariance is interpolated. The interpolation is performed on a sequence of
n_intrplequidistant points from the minimum to the maximum ofgrid.
References
Fang, C. and Liebl, D. (2026). Making Event Study Plots Honest: A Functional Data Approach to Causal Inference. arXiv:2512.06804.