rStats.js v1.3.0
    Preparing search index...

    Interface CoxphOptions

    Options for coxph.

    interface CoxphOptions {
        cluster?: readonly (GroupLabel | null)[];
        confLevel?: number;
        control?: CoxphControl;
        init?: readonly number[];
        nocenter?: readonly number[];
        robust?: boolean;
        strata?: readonly (GroupLabel | null)[];
        ties?: "efron" | "breslow";
        weights?: readonly number[];
    }
    Index
    cluster?: readonly (GroupLabel | null)[]

    Cluster labels, one per observation, for the robust variance (R's cluster): the observations of a cluster are treated as correlated. Rows with a missing label (null or NaN) are dropped, like rows with a missing stratum. Without it, each observation is its own cluster. At least two clusters are needed.

    confLevel?: number

    Confidence level of the intervals of exp(coef). Default 0.95.

    control?: CoxphControl
    init?: readonly number[]

    Starting coefficients. Default 0.

    nocenter?: readonly number[]

    Covariates whose values all lie in this set are neither centred nor scaled. Default [-1, 0, 1].

    robust?: boolean

    Whether to use the robust (Lin-Wei sandwich) variance. Default as R: true when cluster is given or some case weight is not an integer, else false. With false a cluster is ignored (with R's warning).

    strata?: readonly (GroupLabel | null)[]

    Stratum labels, one per observation: a separate baseline hazard per stratum.

    ties?: "efron" | "breslow"

    Handling of tied event times. Default "efron".

    weights?: readonly number[]

    Case weights (positive). A weight that is not an integer switches the robust variance on (see robust).