% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlvar.R
\name{coefs}
\alias{coefs}
\alias{coefs.net_mlvar}
\alias{coefs.default}
\title{Tidy coefficients from a fitted mlvar model}
\usage{
coefs(x, ...)

\method{coefs}{net_mlvar}(x, ...)

\method{coefs}{default}(x, ...)
}
\arguments{
\item{x}{A fitted model object - currently only \code{net_mlvar} is supported.}

\item{...}{Unused.}
}
\value{
A tidy \code{data.frame} of coefficient estimates.
}
\description{
Generic accessor for the tidy coefficient table stored on a
\code{\link[=build_mlvar]{build_mlvar()}} result. Returns a \code{data.frame} with one row per
\verb{(outcome, predictor)} pair and columns \code{outcome}, \code{predictor},
\code{beta}, \code{se}, \code{t}, \code{p}, \code{ci_lower}, \code{ci_upper}, \code{significant}.
}
\details{
Only the within-person (temporal) coefficients are tabulated -
these are the lagged fixed effects that populate \code{fit$temporal}.
The between-subjects effects that go into \code{fit$between} are handled
via the \code{D (I - Gamma)} transformation and are not exposed as a
separate tidy table.
}
\examples{
\dontrun{
d <- simulate_data("mlvar", seed = 1)
fit <- build_mlvar(d, vars = attr(d, "vars"),
                   id = "id", day = "day", beep = "beep")
print(fit)
summary(fit)
}

}
