Description Usage Arguments Details Value Note Author(s) References Examples
This function creates a dataset of dummy variables based on an input character vector.
1 | to.dummy(x)
|
x |
A character vector |
This function transforms a character vector x
with c characteristics to a set of c dummy variables whose column names corresponding to these characteristics marked with “_DUMMY”.
A data.frame
with dummy variables corresponding to the levels of the input variable.
This function contains code from the authors' package MCI.
Thomas Wieland
Greene, W. H. (2012): “Econometric Analysis”. 7th edition. Harlow : Pearson.
1 2 3 4 5 |
Mary_DUMMY Paul_DUMMY Peter_DUMMY
1 0 0 1
2 0 1 0
3 0 0 1
4 1 0 0
5 0 0 1
6 0 1 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.