Simulate Data from a DAG and Associated Node Information


[Up] [Top]

Documentation for package ‘simDAG’ version 0.3.1

Help Pages

simDAG-package Simulate Data from a DAG and Associated Node Information
+.DAG Add a 'DAG.node' object to a 'DAG' object
add_node Add a 'DAG.node' object to a 'DAG' object
as.data.frame.simDT Transform 'sim_discrete_time' output into the start-stop, long- or wide-format
as.data.table.simDT Transform 'sim_discrete_time' output into the start-stop, long- or wide-format
as.igraph.DAG Transform a 'DAG' object into an 'igraph' object
dag2matrix Obtain a Adjacency Matrix from a 'DAG' object
dag_from_data Fills a partially specified 'DAG' object with parameters estimated from reference data
do Pearls do-operator for 'DAG' objects
empty_dag Initialize an empty 'DAG' object
long2start_stop Transform a 'data.table' in the long-format to a 'data.table' in the start-stop format
matrix2dag Obtain a 'DAG' object from a Adjacency Matrix and a List of Node Types
node Create a node object for a 'DAG'
node_aftreg Generate Data from Parametric Survival Models
node_ahreg Generate Data from Parametric Survival Models
node_binomial Generate Data from a (Mixed) Logistic Regression Model
node_competing_events Generate Data with Multiple Mutually Exclusive Events in Discrete-Time Simulation
node_conditional_distr Generate Data by Sampling from Different Distributions based on Strata
node_conditional_prob Generate Data Using Conditional Probabilities
node_cox Generate Data from a Cox-Regression Model
node_ehreg Generate Data from Parametric Survival Models
node_gaussian Generate Data from a (Mixed) Linear Regression Model
node_identity Generate Data based on an expression
node_mixture Generate Data from a Mixture of Node Definitions
node_multinomial Generate Data from a Multinomial Regression Model
node_negative_binomial Generate Data from a Negative Binomial Regression Model
node_poisson Generate Data from a (Mixed) Poisson Regression Model
node_poreg Generate Data from Parametric Survival Models
node_rsurv Generate Data from Parametric Survival Models
node_td Create a node object for a 'DAG'
node_time_to_event Generate Data from repeated Bernoulli Trials in Discrete-Time Simulation
node_ypreg Generate Data from Parametric Survival Models
node_zeroinfl Simulate a Node Using a Zero-Inflated Count Model
plot.DAG Plot a 'DAG' object
plot.simDT Plot a Flowchart for a Discrete-Time Simulation
rbernoulli Generate Random Draws from a Bernoulli Distribution
rcategorical Generate Random Draws from a Discrete Set of Labels with Associated Probabilities
rconstant Use a single constant value for a root node
sim2data Transform 'sim_discrete_time' output into the start-stop, long- or wide-format
sim_discrete_time Simulate Data from a 'DAG' with Time-Dependent Variables
sim_from_dag Simulate Data from a 'DAG'
sim_n_datasets Simulate multiple datasets from a single 'DAG' object