View source: R/visit_sequence_api.R
| add_sequence_factor | R Documentation |
Add to visit sequence for factor variables
add_sequence_factor(roadmap, ..., method = c("entropy", "gini"))
roadmap |
A |
... |
|
method |
A quoted name for the method used to sort the visit_sequence. Current methods include "entropy" and "gini". |
An updated visit_sequence
roadmap(
conf_data = acs_conf_nw,
start_data = acs_start_nw
) |>
add_sequence_factor(dplyr::where(is.factor), method = "gini")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.