View source: R/km_type_weights.R
compute_risk_tb | R Documentation |
<Private function> Compute number at risk at each event time from cohort
compute_risk_tb(cohort, match_var_names, staggered)
cohort |
Cohort data prepared by |
match_var_names |
Name(s) of the match variable(s). |
staggered |
Whether time is staggered (i.e., t_start is specified in input). |
Returns a data.frame with the following columns:
Unique event times in cohort_skeleton
.
Number of events at each event time.
Number of subjects at risk at each event time.
Strata defined by matching variables. match_var=1
if the
NCC is only time-matched.
If the NCC is matched on additional
confounders, each matching variable will be included as a column to the right
of strata
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.