% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_person_model.R
\name{ild_person_distribution}
\alias{ild_person_distribution}
\title{Plot distribution of person-level estimates from ild_person_model}
\usage{
ild_person_distribution(
  person_fit,
  term = NULL,
  type = c("histogram", "density")
)
}
\arguments{
\item{person_fit}{Tibble returned by [ild_person_model()] (columns \code{term}, \code{estimate}, etc.).}

\item{term}{Character. Which term to plot (e.g. \code{"(Intercept)"} or a covariate name).
If \code{NULL}, the first term in the table is used.}

\item{type}{Character. \code{"histogram"} (default) or \code{"density"}.}
}
\value{
A ggplot object.
}
\description{
Draws a histogram or density of the selected term's estimates across persons.
Useful to visualize heterogeneity (e.g. distribution of slopes or intercepts).
}
