View source: R/dynamic_bewrs.R
| compute_dynamic_bewrs | R Documentation |
Computes the Bayesian Dynamic Early-Warning Risk Score using current posterior underperformance probability, persistence, and deterioration.
compute_dynamic_bewrs(
up,
persistence,
deterioration,
alpha = 0,
beta_up = 1,
beta_persistence = 1,
beta_deterioration = 1
)
up |
Numeric vector of posterior underperformance probabilities. |
persistence |
Numeric vector measuring persistence of elevated risk. |
deterioration |
Numeric vector measuring recent deterioration. |
alpha |
Intercept parameter. |
beta_up |
Coefficient for logit-transformed posterior risk. |
beta_persistence |
Coefficient for persistence. |
beta_deterioration |
Coefficient for deterioration. |
Numeric vector of Dynamic BEWRS probabilities.
compute_dynamic_bewrs(
up = c(0.2, 0.5, 0.8),
persistence = c(0.1, 0.4, 0.7),
deterioration = c(0.0, 0.1, 0.2)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.