Creates a family object for univariate Cox regression, compatible
with GLM‐style interfaces. Only the log link is supported, yielding the
usual Cox partial‐likelihood formulation.
Value
A family object (a list with class "family") containing:
familyAlways
"cox".linkLink name,
"log".linkfunFunction transforming
mutoeta.linkinvInverse link, mapping
etatomu.mu.etaDerivative of
linkinv.varianceVariance function (returns 1).
dev.residsDeviance residuals (zeros).
aicAIC placeholder (returns
-2).validmu,validetaValidation functions (always TRUE).
dispersionAlways 1.
Details
This "family" object provides the minimal set of functions required for use with IRLS‐based routines and log-likelihood calculations:
linkfunandlinkinvimplement the log link.mu.etaprovides the derivative of the inverse link.variance,dev.resids, andaicare placeholders (not used in Cox but needed for compatibility).