FUNCTION REFERENCE
parcorr
Sample partial autocorrelation of a univariate time series.
Sample partial autocorrelation of a univariate time series.
Syntax
[pacf,lags,bounds,h] = parcorr(y,NumLags=L,NumAR=p,NumSTD=s,Method='ols')Defaults: L=min(20,T-1), p=0, s=2. Method is 'ols' for complete data and 'yule-walker' with missing data. OLS fits successive AR models with an intercept; Yule-Walker uses sample autocorrelations. Bounds are [s/sqrt(T);-s/sqrt(T)] beyond NumAR. NaNs retain time positions; explicit OLS rejects NaNs. No outputs or four outputs draws stems and bounds. Historical positional (y,L,p,s) is accepted.
Example
[p,l,b]=parcorr([1 3 2 5 4 7 6 2],NumLags=2,Method='yule-walker')Differences from MATLAB: numeric vectors only; table/timetable and explicit axes input unsupported. Rank-deficient or underdetermined OLS fits are rejected. At most 2048 lags, 2000000 design elements and 100000000 work units.
Reference: https://www.mathworks.com/help/econ/parcorr.html
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.