plot_predicted_risk {AutoScore}R Documentation

AutoScore function for binary and ordinal outcomes: Plot predicted risk

Description

AutoScore function for binary and ordinal outcomes: Plot predicted risk

Usage

plot_predicted_risk(
  pred_score,
  link = "logit",
  max_score = 100,
  final_variables,
  scoring_table,
  point_size = 0.5
)

Arguments

pred_score

Output from AutoScore_testing (for binary outcomes) or AutoScore_testing_Ordinal (for ordinal outcomes).

link

(For ordinal outcome only) The link function used in ordinal regression, which must be the same as the value used to build the risk score. Default is "logit" for proportional odds model.

max_score

Maximum total score (Default: 100).

final_variables

A vector containing the list of selected variables, selected from Step(ii) AutoScore_parsimony (for binary outcomes) or AutoScore_parsimony_Ordinal (for ordinal outcomes).

scoring_table

The final scoring table after fine-tuning, generated from STEP(iv) AutoScore_fine_tuning (for binary outcomes) or AutoScore_fine_tuning_Ordinal (for ordinal outcomes).

point_size

Size of points in the plot. Default is 0.5.


[Package AutoScore version 1.0.0 Index]