PolyGenius
Contents

CompetingRiskComparison

Internal competing-risk comparison family

Comparison family for competing-risk outcomes (family key "crr"). It supports the incremental, heterogeneity and contrast types. Models are Fine-Gray fits, built as weighted Cox fits on the finegray() risk set. Incremental and heterogeneity use a likelihood-ratio test. Requires one time and one competing column.

Super class

PolyGenius::ComparisonFamily -> CompetingRiskComparison

Methods

Public methods

  • CompetingRiskComparison$new()
  • CompetingRiskComparison$validate.context()
  • CompetingRiskComparison$prepare.data()
  • CompetingRiskComparison$clone()

Method new()

Create the family (key set by the class).

Usage

CompetingRiskComparison$new()

Method validate.context()

Check the resolved frame supports the requested comparison.

Usage

CompetingRiskComparison$validate.context(frame, cell, fit.specs, type)

Arguments

frame — data.table resolved from the study.

cell — Fit-cell list.

fit.specs — Extra fitting options.

type — Comparison type.

Returns

TRUE, invisibly, or an abort.

Method prepare.data()

Build the complete-case data and role names for fitting.

Usage

CompetingRiskComparison$prepare.data(frame, cell, fit.specs)

Arguments

frame — data.table resolved from the study.

cell — Fit-cell list.

fit.specs — Extra fitting options.

Returns

A list of fit inputs.

Method clone()

The objects of this class are cloneable with this method.

Usage

CompetingRiskComparison$clone(deep = FALSE)

Arguments

deep — Whether to make a deep clone.

See Also