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

    Interface LmFormulaOptions

    Options of lm with a formula.

    interface LmFormulaOptions {
        contrasts?: Record<string, ContrastName>;
        levels?: Record<string, readonly string[]>;
        weights?: string | Sample;
    }

    Hierarchy (View Summary)

    Index
    contrasts?: Record<string, ContrastName>

    A contrast per factor (default "contr.treatment"); a boolean variable takes it too. A name that is not a variable of the formula gives the warning variable 'B' is absent, its contrast will be ignored; a numeric variable (the response too) is an error.

    levels?: Record<string, readonly string[]>

    The order of the levels of a factor ({ A: ["c", "a", "b"] }), as factor(x, levels = ...) in R.

    weights?: string | Sample

    Weights: an array parallel to the rows of data, or the name of a numeric column.