Constructs a simple non-Gaussian model where the state dynamics follow an AR(1) process.
ng_ar1(y, rho, sigma, mu, distribution, phi, u = 1, 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.
distribution of the observation. Possible choices are
"poisson"
, "binomial"
and "negative binomial"
.
Additional parameter relating to the non-Gaussian distribution. For Negative binomial distribution this is the dispersion term, and for other distributions this is ignored.
Constant parameter for non-Gaussian models. For Poisson and negative binomial distribution, this corresponds to the offset term. For binomial, this is the number of trials.
Prior for the regression coefficients.
Matrix containing covariates.
Object of class ng_ar1
.