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