| optimal_intervention | R Documentation |
Selects the intervention with the lowest expected loss.
optimal_intervention(loss_matrix)
loss_matrix |
Numeric matrix or data.frame of expected losses. Rows represent observational units and columns represent intervention options. |
A data.frame containing optimal action and minimum expected loss.
losses <- data.frame(
no_action = c(10, 5, 2),
monitor = c(8, 4, 3),
review = c(7, 6, 4)
)
optimal_intervention(losses)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.