contr.poly.weighted: Orthogonal polynomial contrast matrices for unbalanced data

Description Usage Arguments Value

Description

Similar to contr.poly, but will provide orthogonal contrasts for unbalanced data. By specifying the 'width' argument correctly the function will also return a contrast matrix with an interpretable linear term.

Usage

1

Arguments

f

a factor

weights

optional vector of weights. If not supplied, weights are calculated from f

width

width of group variable (only affects the linear term)

Value

contrast matrix


elbersb/weightedcontrasts documentation built on Dec. 20, 2021, 4:15 a.m.