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

    Interface ModelMatrixOptions

    Options for modelMatrix.

    interface ModelMatrixOptions {
        contrasts?: Record<string, ContrastName>;
        levels?: Record<string, readonly string[]>;
    }

    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.