糖尿病リスク較正

糖尿病リスクスコア較正テンプレート。リスクモデルの妥当性検証。

calibration較正糖尿病リスク
糖尿病リスク較正

R Code (ggplot2)

library(ggplot2)

# ---- DM Risk Calibration ----
# あなたのデータを入力してください
df <- data.frame(
  x = c(),
  y = c()
)

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Predicted Risk", limits = c(0, 1)) +
  scale_y_continuous(name = "Observed Risk", limits = c(0, 1)) +
  labs(title = "DM Risk Calibration") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))