createCat: function to simulate a categorical variable based on a...

Description Usage Arguments Value Author(s)

Description

This function will simply create a categorical variable based on the information specified in the imported excel template including the categories and their probabilities and the fraction missing as specified in the template excel sheet.

Usage

1
createCat(input, n)

Arguments

input

the list of dataframes based on imported template excel file with information about the variable name, categories and their probabilities.

n

the number of observation in the synthetic dataset.

Value

a list of one numeric variable that is simply the categorical variable with categories given numeric number.

Author(s)

Levi Waldron and Ragheed Al Dulaimi


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