View source: R/create_parameters.R
create_parameters | R Documentation |
create_parameters()
facilitates creation of the parameters
input to simBA()
. This input contains information required to generate simulated dataset that will be analyzed within the simulation.
create_parameters(
nbinary = 0,
ncontinuous = 0,
ncount = 0,
unmeasured_conf = "u1",
unmeasured_type = "binary",
file = NULL
)
nbinary , ncontinuous , ncount |
the number of binary, continuous, and count confounders to include, respectively. Default is 0. |
unmeasured_conf |
the name of the unmeasured confounder. Default is |
unmeasured_type |
the type of variable for the unmeasured confounder. Allowable options include |
file |
optional; a string containing a path to a .csv or .xslx file where the output will be written to. If |
A data.frame containing a skeleton of the parameter values, which must be filled in manually by the user. See The parameters
input object section in the simBA()
documentation for which columns will be present in the output. An additional column, Description, will also be produced, but it is not necessary to fill it in.
parameters <- create_parameters(nbinary = 6,
ncontinuous = 2,
ncount = 1,
unmeasured_conf = "u1",
unmeasured_type = "continuous")
parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.