View source: R/decision_tree_exposure.R
decision_tree_exposure | R Documentation |
decision_tree_exposure()
defines a Poisson decision tree model with
weighted exposures (observation times).
decision_tree_exposure(
mode = "regression",
engine = "rpart_exposure",
cost_complexity = NULL,
tree_depth = NULL,
min_n = NULL
)
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. |
This function is similar to parsnip::decision_tree()
except that
specification of an exposure column is required.
A model specification object with the classes
decision_tree_exposure
and model_spec
.
parsnip::decision_tree()
parsnip::show_model_info("decision_tree_exposure")
decision_tree_exposure()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.