View source: R/km_type_weights.R
match_risk_table | R Documentation |
<Private function> Match number at risk at coarsened time to NCC cases
match_risk_table( ncc_cases, risk_table_manual, t_coarse_name, t_name, match_var_names = NULL )
ncc_cases |
Cases in NCC data. A |
risk_table_manual |
A |
t_coarse_name |
Name of the column of event time in each matched set in
|
t_name |
Name of the column of the exact event time. A |
match_var_names |
Name(s) of the match variable(s) in
|
Returns a data.frame with the following columns:
Unique event times (exact, not coarsened).
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.