% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/em_gau.R
\name{em_gau}
\alias{em_gau}
\title{EM algorithm for Gaussian AD model estimation}
\usage{
em_gau(
  y,
  order = 1,
  blocks = NULL,
  estimate_mu = TRUE,
  max_iter = 100,
  tol = 1e-06,
  verbose = FALSE,
  ...
)
}
\arguments{
\item{y}{Numeric matrix (n_subjects x n_time), may contain NA.}

\item{order}{Integer 0, 1, or 2.}

\item{blocks}{Optional vector of block membership (length n_subjects).}

\item{estimate_mu}{Logical, whether to estimate mu (default TRUE).}

\item{max_iter}{Maximum EM iterations.}

\item{tol}{EM convergence tolerance.}

\item{verbose}{Logical, print EM progress.}

\item{...}{Additional arguments passed to \code{\link{fit_gau}}.}
}
\value{
An \code{gau_fit} object as returned by \code{\link{fit_gau}}.
}
\description{
Convenience wrapper around \code{\link{fit_gau}} with
\code{na_action = "em"} to provide a parallel entry point to
\code{\link{em_inad}}.
}
\details{
This is an alias-style helper for users who prefer explicit \code{em_*}
entry points across model families.
}
\examples{
set.seed(1)
y <- simulate_gau(n_subjects = 35, n_time = 5, order = 1, phi = 0.3)
y[sample(length(y), 8)] <- NA
fit <- em_gau(y, order = 1, max_iter = 20, tol = 1e-5)
fit$settings$na_action

}
\seealso{
\code{\link{fit_gau}}, \code{\link{em_inad}}, \code{\link{em_cat}},
\code{\link{fit_cat}}
}
