mean_contrasts {codingMatrices} | R Documentation |
Display contrasts
Description
A function to display the averaging vector and class mean contrasts implied by a given coding matrix
Usage
mean_contrasts(M)
Arguments
M |
Any |
Value
The full contrast matrix, solve(cbind(1, M))
, suitably
annotated and presented in vulgar fractional form, for clarity.
Examples
mean_contrasts(code_helmert_forward(5))
mean_contrasts(code_diff_forward(letters[1:7]))
[Package codingMatrices version 0.4.0 Index]