Description Usage Arguments Value Author(s)
This function will simply define a categorical variable by divided an already created continuous variable into several categories based on cutpoint defined in the template excel sheet that was imported as data frame. Information also include the variable name and the name of categories.
1 | recodeCont2cat(input, output, n)
|
input |
the list of dataframes based on imported template excel file with information about the variable name, categories and the cut point to be used on the continuous variable. |
output |
the dataframe that contain the predefined continuos variable. |
n |
the number of observation in the synthetic dataet. |
a list of one variable that is simply the new categorical variable with categories's probabilities based on cutpoints for the continuous variable. Also the missing fraction is based on the fraction missing in the orginal continuopus variable.
Levi Waldron and Ragheed Al Dulaimi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.