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

    Interface McregResult

    Result of mcreg.

    interface McregResult {
        bootstrap?: {
            globalSigma: [number, number];
            intercept: number[];
            nsamples: number;
            sigmaIntercept: number[];
            sigmaSlope: number[];
            slope: number[];
        };
        confLevel: number;
        cusum?: { maxCusum: number; nNeg: number; nPos: number };
        errorRatio: number;
        intercept: McregCoefficient;
        jackknife?: { intercept: number[]; slope: number[] };
        methodBootstrapCi?: McregBootstrapCiMethod;
        methodCi: McregCiMethod;
        methodReg: McregMethod;
        n: number;
        slope: McregCoefficient;
        warnings: string[];
        weights?: number[];
        xmean: number;
    }
    Index
    bootstrap?: {
        globalSigma: [number, number];
        intercept: number[];
        nsamples: number;
        sigmaIntercept: number[];
        sigmaSlope: number[];
        slope: number[];
    }

    Bootstrap: the coefficients of the resamples kept, in the order drawn (mcr's @B0, @B1), their standard errors (@sigmaB0, @sigmaB1: the standard deviation of the nested estimates, the analytical standard error for Deming, the jackknife one for weighted Deming with BCa, else NaN), the global standard errors (@glob.sigma) and the number of resamples kept.

    Type Declaration

    • globalSigma: [number, number]

      The global standard errors of the intercept and the slope (mcr's @glob.sigma).

    • intercept: number[]

      The intercepts of the resamples kept, in the order drawn (mcr's @B0).

    • nsamples: number

      The number of resamples kept.

    • sigmaIntercept: number[]

      The standard errors of the intercepts (mcr's @sigmaB0).

    • sigmaSlope: number[]

      The standard errors of the slopes (mcr's @sigmaB1).

    • slope: number[]

      The slopes of the resamples kept (mcr's @B1).

    confLevel: number

    The level of the intervals.

    cusum?: { maxCusum: number; nNeg: number; nPos: number }

    Passing-Bablok: the linearity statistic (mcr's calcCUSUM): the numbers of points above and below the line and the largest absolute cumulative sum of their scores ordered along the line.

    Type Declaration

    • maxCusum: number

      The largest absolute cumulative sum of the scores ordered along the line.

    • nNeg: number

      The number of points below the line.

    • nPos: number

      The number of points above the line.

    errorRatio: number

    The ratio of the error variances used (1 for Passing-Bablok).

    intercept: McregCoefficient

    The intercept (mcr's row Intercept of @para).

    jackknife?: { intercept: number[]; slope: number[] }

    Jackknife: the leave-one-out coefficients (mcr's @B0jack, @B1jack; also for the BCa interval).

    Type Declaration

    • intercept: number[]

      The intercepts with each point left out (mcr's @B0jack).

    • slope: number[]

      The slopes with each point left out (mcr's @B1jack).

    methodBootstrapCi?: McregBootstrapCiMethod

    The bootstrap interval, in full (bootstrap methods only).

    methodCi: McregCiMethod

    The interval method, in full.

    methodReg: McregMethod

    The regression method, in full.

    n: number

    Number of pairs used.

    The slope (mcr's row Slope of @para).

    warnings: string[]

    Warnings (the weighted Deming iteration not converging, degenerate resamples, an undefined interval).

    weights?: number[]

    Weighted Deming: the weights of the last iteration (mcr's @weight); Infinity where beyond the double range.

    xmean: number

    The mean of x (Deming), the weighted mean of the last iteration (weighted Deming), NaN (Passing-Bablok).