| compute_cde | R Documentation |
Computes Controlled Direct Effect as the ratio of average hazard
contributions on the natural scale:
CDE(S) = mean(exp(theta_1[S])) / mean(exp(theta_0[S])).
compute_cde(df, subset_indicator = NULL)
df |
Data frame with |
subset_indicator |
Optional logical/integer vector for subsetting.
If provided, only rows where |
Numeric CDE value, or NA_real_ if columns are missing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.