Constructs a simple Gaussian model where the state dynamics follow an AR(1) process.
ar1(y, rho, sigma, mu, sd_y, beta, xreg = NULL)
Vector or a ts
object of observations.
prior for autoregressive coefficient.
Prior for the standard deviation of noise of the AR-process.
A fixed value or a prior for the stationary mean of the latent AR(1) process. Parameter is omitted if this is set to 0.
Prior for the standard deviation of observation equation.
Prior for the regression coefficients.
Matrix containing covariates.
Object of class ar1
.