createDummy: function to create dummy variables from already created...

Description Usage Arguments Value Author(s)

Description

This function will simply create a number of dummy variable for each of the categories of a previously created categorical variable. The categories and name of each dummy variable will be based on the information specified in the imported excel template.

Usage

1
createDummy(input, n)

Arguments

input

the list of dataframes based on imported template excel file with information about the variable name, categories and the name of the previuosly defined categorical variable that will be recoded as dummy vairables.

n

the number of observation in the synthetic dataet

Value

a list of dummy variables that is created based on the elements of a previously defined categorical variable.

Author(s)

Levi Waldron and Ragheed Al Dulaimi


raldulai/Episim documentation built on May 26, 2019, 10:02 p.m.