code_control_named | R Documentation |
This function is a drop-in replacement for
codingMatrices::code_control()
, except that when generating a
contrast matrix, it gives column names of the form "A.vs.B" instead
of "B-A".
code_control_named(n, contrasts = TRUE, sparse = FALSE, sep = ".vs.")
n, contrasts, sparse |
These arguments are identical
|
sep |
The string to insert between two levels in order to generate the column names of the coding matrix. |
The same as codingMatrices::code_control()
, but with more
descriptive column names.
codingMatrices::code_control()
library(codingMatrices) # Compare the resulting column names code_control(4) code_control_named(4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.