assign_kmw0: <Private function> Assign appropriate KM-type weight to...

View source: R/km_type_weights.R

assign_kmw0R Documentation

<Private function> Assign appropriate KM-type weight to unique subjects in NCC

Description

<Private function> Assign appropriate KM-type weight to unique subjects in NCC

Usage

assign_kmw0(ncc_nodup, risk_table)

Arguments

ncc_nodup

NCC data prepared using prepare_cohort function. This data should not include the ID of each matched set or the time of event in each set.

risk_table

Output from compute_risk_tb, with an additional column p.

Value

Returns ncc_nodup with two additional columns: .km_prob for KM-type probability, and .km_weight for KM-type weight.


nyilin/SamplingDesignTools documentation built on Nov. 20, 2022, 8:07 a.m.