Transforms a cta_balance_table result into a
renderer-independent data structure suitable for Graphics v3 plotting.
For no_tree results, populates no_tree_message with the
favorable-balance interpretation.
Arguments
- cta_balance
A
"cta_balance_table"object fromcta_balance_table.- target_class
Integer; target class for endpoint coloring in the embedded tree diagram. Default
1L(group 1 = treated).- digits
Integer; decimal digits passed to
cta_plot_data. Default1L.
Value
A list of class "cta_balance_plot_data" with elements:
statusCharacter;
"valid_tree","stump","no_tree", or"fit_error".balance_interpretationCharacter.
no_tree_messageCharacter; human-readable no-tree annotation for renderers;
NAwhen status is not"no_tree".cta_pdList from
cta_plot_datawhen a valid tree or stump was found;NULLfor no_tree or fit_error.ess_displayNumeric; full-tree ESS/WESS (%);
NAfor no_tree.d_statNumeric;
NAfor no_tree.has_weightsLogical.
ess_labelCharacter;
"WESS"or"ESS".
Details
This function does not fit any CTA models. It is a pure
transformation of the pre-computed cta_balance_table result.