defData: Add single row to definitions table
Description
Add single row to definitions table
Usage
defData(dtDefs = NULL, varname, formula, variance = 0, dist = "normal", link = "identity", id = "id")
Arguments
dtDefs
Definition data.table to be modified
varname
Name (string) of new variable
formula
An R expression for mean (string)
dist
Distribution. For possibilities, see details
link
The link function for the mean, see details
id
A string indicating the field name for the unique record identifier
Value
A data.table named dtName that is an updated data defnitions table
Details
The possible data distributions include ""normal", "poisson",
"noZeroPoisson", "binary", "uniform", "categorical", "gamma", and "nonrandom."