View source: R/km_type_weights.R
p_not_sampled | R Documentation |
<Private function> Compute the probability that an eligible non-case is not sampled at each event time
p_not_sampled(n_event, n_at_risk, n_per_case)
n_event |
A vector of number of event at each event time (1 if no tie in event time, or >1 in the presence of ties). Non-integers are rounded down. |
n_at_risk |
A vector of the number of subject at risk at each event time. Non-integers are rounded down. |
n_per_case |
Number of controls to select per case. A positive integer. Non-integers are rounded down. |
Returns a vector of probabilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.