Skip to contents

Calculates absolute risk reduction based on the Kaplan-Meier estimates within risk strata

Usage

absoluteRiskReduction(population, timePoint, psMethod)

Arguments

population

The study population generated by matchOnPs when using propensity score matching or by stratifyByPs when stratifying on the propensity score. In case of inverse probability of treatment weighting approach, it is a datframe with a weights column.

timePoint

The time at which the absolute risk difference is estimated

psMethod

Can be one of "matchOnPs", "stratifyByPs" or "inversePtWeighted".

Value

A dataframe with the absolute risk-stratum specific absolute risk difference estimates, along with 95 percent confidence interval.