pii | R Documentation |
Computes the Predictive Information Index using one of three methods: "r2" (R-squared ratio), "rm" (RMSE-based), or "v" (variance ratio).
pii(full_preds, score_preds, type = c("r2", "rm", "v"))
full_preds |
Predicted values from the full (benchmark) model. |
score_preds |
Predicted values from the score-based model. |
type |
Type of PII to compute: "r2", "rm", or "v". |
A numeric value between 0 and 1.
full <- rnorm(100)
score <- full + rnorm(100, sd = 0.5)
pii(full, score, type = "rm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.