Contents
CoxComparison
Internal Cox comparison family
Comparison family for time-to-event outcomes (family key "cox"). It
supports the incremental, heterogeneity and contrast types. Incremental and
heterogeneity compare nested coxph fits with a likelihood-ratio test.
Contrast takes pairwise Wald contrasts of the predictor effect across
groups.by levels. Requires exactly one time column.
Super class
PolyGenius::ComparisonFamily -> CoxComparison
Methods
Public methods
CoxComparison$new()CoxComparison$validate.context()CoxComparison$prepare.data()CoxComparison$clone()
Method new()
Create the family (key set by the class).
Usage
CoxComparison$new()
Method validate.context()
Check the resolved frame supports the requested comparison.
Usage
CoxComparison$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
CoxComparison$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
CoxComparison$clone(deep = FALSE)
Arguments
deep — Whether to make a deep clone.
See Also
ComparisonFamily, associate$compare, CoxRegression
Other comparison-families:
ComparisonFamily,
CompetingRiskComparison,
LinearComparison,
LogisticComparison