人年和每千人年的发病率

问题描述 投票:0回答:1

我正在使用 R,并且我使用了

tbl_uvregression()
函数。 但是,我还想在表中包含人年每 1000 人年的发病率

df3 |>
  select(age, age6, sex, bmi, bmi_cat2,
         scheme_cat, hoscenter_cat1, nation,
         symini_cat3, month_admit, province,death28_cat1,
         favi, dexa, ando, D0Temp, d0temp_38, D0SPO2Pre, d0SPO2Pre_96, 
         exer_postO_3, dd_swabadmit, dd_swabadmit_cat1,timesurvival28_2_year) |>
  mutate(bmi_cat2 = fct_relevel(bmi_cat2, c('18.5 - 22.9', '<18.5', '23.0 - 24.9', '25.0 - 29.9', '30.0 - 34.9', '>=35.0'))) |>
  tbl_uvregression(
    method = coxph,
    y = Surv(timesurvival28_2_year,
             event = death28_cat1 == "Yes"),
    exponentiate = TRUE,
    estimate_fun = purrr::partial(style_ratio, digits = 1),
    pvalue_fun = purrr::partial(style_sigfig, digits = 3)) |>
  add_n(location = "level") |>
  add_nevent(location = "level") |>
  as_gt()
r survival-analysis survival
1个回答
0
投票

总人年只是生存时间的总和(显然以年表示),每 1000 人年的发病率是事件数量除以该总和的 1000 倍。这些不是您从 Cox 模型获得的结果,因此您可能无法仅从

tbl_uvregression
获得它们。

© www.soinside.com 2019 - 2024. All rights reserved.