% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ar-models.R
\name{AR1}
\alias{AR1}
\title{Autoregressive model of order 1}
\usage{
AR1(n, alpha, mean = 0, sd = 1)
}
\arguments{
\item{n}{Positive integer. Number of values to generate.}

\item{alpha}{Numeric in \eqn{(-1, 1)}. Lag-1 autocorrelation coefficient.}

\item{mean}{Numeric. Process mean. Default \code{0}.}

\item{sd}{Positive numeric. Process standard deviation. Default \code{1}.}
}
\value{
A numeric vector of length \code{n}.
}
\description{
Generates a Gaussian time series from a first-order autoregressive (AR(1))
model with specified lag-1 autocorrelation, mean, and standard deviation.
}
\keyword{internal}
