| calculateKM | R Documentation |
The numerical engine always retains fractional weighted counts. The public package interface defaults to integer reporting for plotting compatibility; internal estimation code can request the unrounded weighted totals.
calculateKM(
t,
d,
w = numeric(),
strata = integer(),
error = "greenwood",
count.type = c("integer", "numeric")
)
t |
Follow-up times. |
d |
Event indicator. |
w |
Optional non-negative case weights. |
strata |
Optional integer stratum codes. |
error |
Variance calculation method. |
count.type |
Return weighted |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.