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

    Interface LmerResult

    Result of lmer: the fit of a linear mixed model and the quantities of R's methods for it.

    interface LmerResult {
        AIC: number;
        BIC: number;
        coefTable: { estimate: number[]; stdError: number[]; tValue: number[] };
        deviance: number;
        df: number;
        fitted: number[];
        fixef: number[];
        fixefNames: string[];
        formula: string;
        logLik: number;
        messages: string[];
        nObs: number;
        ranef: LmerRanef[];
        REML: boolean;
        REMLcrit: number;
        residuals: number[];
        rows: number[];
        sigma: number;
        singular: boolean;
        theta: number[];
        varCorr: LmerVarCorr[];
        vcov: number[][];
        warnings: string[];
    }
    Index
    AIC: number

    Akaike's information criterion (R's AIC()).

    BIC: number

    Schwarz's Bayesian information criterion (R's BIC()).

    coefTable: { estimate: number[]; stdError: number[]; tValue: number[] }

    The coefficient table of the fixed effects (R's coef(summary(fit))).

    Type Declaration

    • estimate: number[]

      Estimates (R's Estimate).

    • stdError: number[]

      Standard errors (R's Std. Error).

    • tValue: number[]

      t statistics (R's t value).

    deviance: number

    The ML deviance at the estimates, for either kind of fit (R's deviance(fit, REML = FALSE)).

    df: number

    Degrees of freedom of the log-likelihood: the numbers of fixed effects and of θ, plus 1 (for σ).

    fitted: number[]

    Fitted values Xβ̂ + Zb̂, one per row used (R's fitted()).

    fixef: number[]

    The fixed effects β̂ (R's fixef()).

    fixefNames: string[]

    Names of the columns of the fixed-effects model matrix (aliased columns dropped).

    formula: string

    The formula.

    logLik: number

    The log-likelihood, or the REML log-likelihood for a REML fit (R's logLik()).

    messages: string[]

    R's messages (a rank-deficient fixed-effects matrix, a singular fit).

    nObs: number

    Number of rows used.

    ranef: LmerRanef[]

    The conditional modes of the random effects, one entry per grouping factor (R's ranef()).

    REML: boolean

    Whether the REML criterion was minimised (otherwise the ML deviance).

    REMLcrit: number

    The REML criterion at the estimates, for either kind of fit (R's REMLcrit()).

    residuals: number[]

    Residuals y − fitted (R's residuals()).

    rows: number[]

    0-based indices of the rows of data used (rows with a missing value in a variable of the formula dropped).

    sigma: number

    The residual standard deviation (R's sigma()).

    singular: boolean

    Whether the fit is singular: a diagonal element of a relative covariance factor below 1e-4 (R's isSingular()).

    theta: number[]

    The estimate of the covariance parameters θ (R's getME(fit, "theta")): the lower triangles of the relative covariance factors, by term, column-major.

    varCorr: LmerVarCorr[]

    The variance components, one entry per random-effects term (R's VarCorr()).

    vcov: number[][]

    The covariance matrix of the fixed effects (R's vcov()), array of rows.

    warnings: string[]

    R's warnings (predictors on very different scales).