evaluate$calibration
Calibration metrics for PRS models
Description
evaluate$calibration() assesses agreement between predictions and observed outcomes for one or more PRS models.
Usage
evaluate$calibration(models = NULL, on, outcome, type = c("auto", "binary", "continuous", "survival"), time = NULL, event = NULL, obs = NULL, scores.layer = X, score.mode = c("compute.if.missing", "require", "recompute"), score.args = list(), metrics = NULL, n.groups = 10, conf.level = 0.95)
Arguments
models
|
Optional model specification (see |
on
|
Evaluation context ( |
outcome
|
Outcome definition.
|
type
|
Outcome type ( |
time
|
Unquoted time-to-event expression (required for survival). |
event
|
Unquoted event-indicator expression (required for survival). |
obs
|
Optional unquoted observation subset expression. |
scores.layer
|
Score layer to read/use (symbol or single string). |
score.mode
|
Score resolution mode. If |
score.args
|
Named list passed to |
metrics
|
Optional metric subset; defaults by outcome type when |
n.groups
|
Number of groups for Hosmer-Lemeshow style grouping (binary outcomes). |
conf.level
|
Confidence level for interval estimates. |
logger
|
Optional logger to pass and use within the function. Defaults |
Value
A PolyGeniusEvaluation object only. Any temporary PolyGeniusData constructed from genotype input is not returned. Calibration artifacts are available via slotArtifacts():
-
calibrationfor all outcome types: one row per evaluated observation and model withobservedandpredictedvalues. For survival outcomes,predictedis the fitted linear predictor andobservedis the event indicator. -
decilesfor binary outcomes: one row per Hosmer-Lemeshow grouping bin withgroup,observed.events,expected.events,n,observed.rate, andexpected.rate.
See Also
Other evaluate: evaluate.benchmark(), evaluate.compare(), evaluate.discrimination(), evaluate.incremental(), evaluate.risk.strata(), evaluate.similarity()