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

    Interface SurvdiffResult

    Result of survdiff.

    interface SurvdiffResult {
        chisq: number;
        df: number;
        exp: number[];
        groups: string[];
        n: number[];
        obs: number[];
        pvalue: number;
        pValue: number;
        var: number[][];
        warnings: string[];
    }
    Index
    chisq: number

    Chi-squared statistic

    df: number

    Degrees of freedom: (number of groups with a positive expected count) - 1, or the rank of the variance matrix of those groups (all but the first) when it is singular

    exp: number[]

    Weighted expected number of events per group

    groups: string[]

    R's names of the groups, "group=<label>", in the order of the sorted labels

    n: number[]

    Number of observations per group

    obs: number[]

    Weighted observed number of events per group

    pvalue: number

    Upper chi-squared tail on df degrees of freedom (NaN for df = 0: the data carry no information on the groups)

    pValue: number

    Alias of pvalue: the same value.

    var: number[][]

    Variance matrix of obs - exp (array of rows)

    warnings: string[]

    R's warnings, each once, in R's order (an empty array when there are none).