% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature_coa.R
\name{competes}
\alias{competes}
\title{Report Competing Split Criteria}
\usage{
competes(node_id, dtree = NULL)
}
\arguments{
\item{node_id}{A `coa_dtree` object (to get competing splits for all
group roots), or an integer node ID from the rpart tree.}

\item{dtree}{A `coa_dtree` object (from `coa_result$deviance_tree`).
Required only when \code{node_id} is an integer.}
}
\value{
A data frame (or named list of data frames) with columns
  `criterion`, `sign`, `value`, and `improve`.
}
\description{
Shows all competing split variables at tree nodes, ranked by improvement.
Useful for understanding which constructs nearly split instead of the
chosen variable.
}
\details{
When called with a single `coa_dtree` object, returns competing splits
at all deviant group root nodes. When called with a node ID and a
`coa_dtree` object, returns competing splits at that specific node.
}
\seealso{
[group_rules()], [assess_coa()]
}
