% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit.R
\name{coef.bdeb_fit}
\alias{coef.bdeb_fit}
\title{Extract Point Estimates from a BDEB Fit}
\usage{
\method{coef}{bdeb_fit}(object, type = c("median", "mean"), ...)
}
\arguments{
\item{object}{A \code{\link[=bdeb_fit]{bdeb_fit()}} object.}

\item{type}{One of \code{"median"} (default) or \code{"mean"}.}

\item{...}{Ignored.}
}
\value{
Named numeric vector of point estimates.
}
\description{
Returns posterior medians of all model parameters as a named numeric
vector, consistent with the S3 \code{\link[=coef]{coef()}} convention.
}
\examples{
\donttest{
if (requireNamespace("cmdstanr", quietly = TRUE) &&
    nzchar(tryCatch(cmdstanr::cmdstan_path(), error = function(e) ""))) {
  data(eisenia_growth)
  dat <- bdeb_data(growth = eisenia_growth[eisenia_growth$id == 1, ])
  fit <- bdeb_fit(bdeb_model(dat, type = "individual"),
                  chains = 2, iter_warmup = 200, iter_sampling = 200,
                  refresh = 0)
  coef(fit)
}
}
}
