Constructs an DenominatorType object for denominator choice.

createDenominatorType(denomType, sufficientDays = NULL)

Arguments

denomType

Character string specifying denominator type. Must be one of:

  • "pd1": Patients who have been observed on the first day of the period of interest

  • "pd2": Patients who contribute all observable person-days in the period of interest.

  • "pd3": Patients who contribute at least 1 day in the period of interest.

  • "pd4": Patients who contribute sufficient time in the period of interest based on at least n observable person-days in the period of interest.

sufficientDays

Integer: For denominator choice "pd4", the number of minimum observable days patients must be observed.

Value

A DenominatorType R6 object.