x
,
assumed to be stationary. The univariate marginal density is estimated
in all cases; bivariate densities of pairs of lagged values are estimated
depending on the parameter lags
.
sm.ts.pdf(x, h = hnorm(x), lags, maxlag = 1, ask = TRUE)
k
say, in the vector lags
a density
estimate is produced
of the joint distribution of the pair (x(t-k),x(t))
.
lags
is not given, it is assigned the value 1:maxlag
(default=1).
ask=TRUE
, the program pauses after each plot, until sm.density
.
sm.density
, sm.autoregression
with(geyser, {
sm.ts.pdf(geyser$duration, lags=1:2)
})
Run the code above in your browser using DataLab