powered by
This function uses local polynomial regression to nonparametrically estimate the autoregression function in a nonlinear AR1 model.
ARlocpoly(z, deg = 1, h, ...)
A list containing
numeric vector of evaluation points.
numeric vector of nonparametric estimates at the values in x.
x
numeric, bandwidth
numeric vector of time series observations.
numeric, degree of local polynomial fit.
numeric, bandwidth for local polynomial estimate.
any other arguments taken by locpoly.
locpoly
L. Han and S. Snyman
Fan, J. and Yao, Q. (2008) Nonlinear Time Series: Nonparametric and Parametric Methods. Springer.
x <- nonlinearAR1.sim(100, g = function(x) x*sin(x), sd = 1.5) # simulated data ARlocpoly(x, deg = 0, h = 0.5)
Run the code above in your browser using DataLab