% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{logLik.antedep}
\alias{logLik.antedep}
\alias{logLik.gau_fit}
\alias{logLik.cat_fit}
\alias{logLik.inad_fit}
\title{Log-likelihood for antedependence model fits}
\usage{
\method{logLik}{gau_fit}(object, ...)

\method{logLik}{cat_fit}(object, ...)

\method{logLik}{inad_fit}(object, ...)
}
\arguments{
\item{object}{A fitted model object of class \code{gau_fit},
\code{cat_fit}, or \code{inad_fit}.}

\item{...}{Unused; present for S3 consistency.}
}
\value{
A scalar of class \code{"logLik"} with attributes
\code{df} (number of free parameters) and \code{nobs}
(number of subjects).
}
\description{
Extracts the maximised log-likelihood from a fitted antedependence model
and returns a \code{"logLik"} object compatible with \code{\link[stats]{AIC}}
and \code{\link[stats]{BIC}}.
}
\examples{
\donttest{
set.seed(1)
y <- simulate_gau(n_subjects = 40, n_time = 5, order = 1, phi = 0.4)
fit <- fit_gau(y, order = 1)
logLik(fit)
AIC(fit)
BIC(fit)
}

}
