compute_prob_observed {AutoScore} | R Documentation |
Internal function: Based on given labels and scores, compute proportion of subjects observed in each outcome category in given score intervals.
Description
Internal function: Based on given labels and scores, compute proportion of subjects observed in each outcome category in given score intervals.
Usage
compute_prob_observed(
pred_score,
link = "logit",
max_score = 100,
score_breaks = seq(from = 5, to = 70, by = 5)
)
Arguments
pred_score |
A |
link |
The link function used to model ordinal outcomes. Default is
|
max_score |
Maximum attainable value of final scores. |
score_breaks |
A vector of score breaks to group scores. The average
predicted risk will be reported for each score interval in the lookup
table. Users are advised to first visualise the predicted risk for all
attainable scores to determine |
[Package AutoScore version 1.0.0 Index]