% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature_coa.R
\name{deviance_tree}
\alias{deviance_tree}
\title{Build Deviance Tree}
\usage{
deviance_tree(pd_result, deviance_bounds = c(0.025, 0.975))
}
\arguments{
\item{pd_result}{A `coa_deviance` object from `predictive_deviance()`.}

\item{deviance_bounds}{Two-element numeric vector of quantile bounds
(default `c(0.025, 0.975)`).}
}
\value{
An object of class `coa_dtree` containing the rpart tree,
  deviant groups, group roots, unique deviants, and sorted PD values.
}
\description{
Grows a decision tree on predictive deviance scores to identify groups
of cases with extreme (deviant) PD values.
}
\seealso{
[assess_coa()], [predictive_deviance()], [group_rules()], [competes()]
}
