simfull | R Documentation |
This function simulates full data based on a list of intervention DAGs, returning a list of data.frame
s.
simfull(
actions,
n,
wide = TRUE,
LTCF = NULL,
rndseed = NULL,
rndseed.reset.node = NULL,
verbose = getOption("simcausal.verbose")
)
actions |
Actions specifying the counterfactual DAG. This argument must be either an object of class DAG.action or a list of DAG.action objects. |
n |
Number of observations to sample. |
wide |
A logical, if TRUE the output data is generated in wide format, if FALSE, the output longitudinal data in generated in long format |
LTCF |
If forward imputation is desired for the missing variable values, this argument should be set to the name of the node that indicates the end of follow-up event. See the vignette, |
rndseed |
Seed for the random number generator. |
rndseed.reset.node |
When |
verbose |
Set to |
A named list, each item is a data.frame
corresponding to an action specified by the actions argument, action names are used for naming these list items.
simobs
- a wrapper function for simulating observed data only; sim
- a wrapper function for simulating both types of data; doLTCF
for forward imputation of the missing values in already simulating data; DF.to.long
, DF.to.longDT
- converting longitudinal data from wide to long formats.
Other simulation functions:
sim()
,
simobs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.