Description Usage Arguments Value Author(s)
Put a CRC dataset into a standard form that is understood by functions like
lllcrc
.
1 | formatdata(x, y, cont.vars = NULL, categ.vars = NULL)
|
x |
The data frame of CRC data, such as the output of the simulation
function |
y |
A character string indicating which column of |
cont.vars |
A character vector of variable names for continuous variables. |
categ.vars |
A character vector of variable names for categorical variables. |
A data frame that is an expanded version of the argument x
.
Variables are renamed using an "x.con...." or "x.dis...." for continuous and
discrete variables, respectively. Each discrete/categorical variable with L
levels is expanded into L separate binary variables. Several attributes
are included to describe the data format.
Zach Kurtz
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.