Simulate Data from a DAG and Associated Node Information


[Up] [Top]

Documentation for package ‘simDAG’ version 0.1.2

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 to grow a DAG step-by-step
node_binomial Simulate a Node Using Logistic Regression
node_competing_events Simulate a Time-to-Event Node with Multiple Mutually Exclusive Events in Discrete-Time Simulation
node_conditional_distr Simulate a Node by Sampling from Different Distributions based on Strata
node_conditional_prob Simulate a Node Using Conditional Probabilities
node_cox Simulate a Node Using Cox-Regression
node_custom Create Your Own Function to Simulate a Root Node, Child Node or Time-Dependent Node
node_gaussian Simulate a Node Using Linear Regression
node_multinomial Simulate a Node Using Multinomial Regression
node_negative_binomial Simulate a Node Using Negative Binomial Regression
node_poisson Simulate a Node Using Poisson Regression
node_td Create a node object to grow a DAG step-by-step
node_time_to_event Simulate a Time-to-Event Node in Discrete-Time Simulation
plot.DAG Plot a 'DAG' object
plot.simDT Create a Simple 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 Using Discrete-Time Simulation to Generate Complex Data from a Given DAG and Node Information
sim_from_dag Simulate Data from a Given DAG and Node Information
sim_n_datasets Generate multiple datasets from a single 'DAG' object