Autocorrelation and Partial Autocorrelation with NaNs
NANAUTOCORR and NANPARCORR calculate the nlag autocorrelation and partial autocorrelation coefficients for a data vector containing NaNs. The MATLAB function CORR is used and allows to exclude couples of data including NaNs. Confidence boundaries for non-significant coefficients are given using Bartlett's formula, with the hypothesis of asymptotic normality. Based on the MATLAB function CORR. Any feedback or suggestion is appreciated.
Cite As
Fabio (2024). Autocorrelation and Partial Autocorrelation with NaNs (https://www.mathworks.com/matlabcentral/fileexchange/43840-autocorrelation-and-partial-autocorrelation-with-nans), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Numeric Types > NaNs >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |