Summarise number of people, number of events, and sum of person time by group.
table_pt(data, id_var = "bbv_id", outcome, vars, pt, var_col = TRUE)Dataframe
if (FALSE) { # \dontrun{
table_pt(data, id_var="bbv_id", outcome="drd", vars=c("sex", "hb"), pt="person-years")
} # }