Description Usage Arguments See Also Examples
Simple function to create Effect Codes from a single variable, given some base reference category. Only "k-1" Effect Variables will be created - excluding the base reference group.
1 | makeEffects(x, ref)
|
x |
Vector to be Dummy Coded. |
ref |
Name of the base reference category. |
1 2 | makeEffects(mtcars$cyl, "4")
mtcars <- data.frame(mtcars, makeEffects(mtcars$cyl, "4"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.