decision_tree_exposure {offsetreg} | R Documentation |
Poisson Decision Trees with Exposures
Description
decision_tree_exposure()
defines a Poisson decision tree model with
weighted exposures (observation times).
Usage
decision_tree_exposure(
mode = "regression",
engine = "rpart_exposure",
cost_complexity = NULL,
tree_depth = NULL,
min_n = NULL
)
Arguments
mode |
A single character string for the type of model. The only possible value for this model is "regression" |
engine |
A single character string specifying what computational engine to use for fitting. |
cost_complexity |
A positive number for the the cost/complexity
parameter (a.k.a. |
tree_depth |
An integer for maximum depth of the tree. |
min_n |
An integer for the minimum number of data points in a node that are required for the node to be split further. |
Details
This function is similar to parsnip::decision_tree()
except that
specification of an exposure column is required.
Value
A model specification object with the classes
decision_tree_exposure
and model_spec
.
See Also
Examples
parsnip::show_model_info("decision_tree_exposure")
decision_tree_exposure()