simulate_data {dce} | R Documentation |
Generate data for given DAG.
simulate_data( graph, n = 100, dist_mean = 1000, dist_dispersion = 100, link = negative.binomial.special()$linkfun, pop_size = 0, latent = 0 ) ## S4 method for signature 'igraph' simulate_data( graph, n = 100, dist_mean = 1000, dist_dispersion = 100, link = negative.binomial.special()$linkfun, pop_size = 0, latent = 0 ) ## S4 method for signature 'graphNEL' simulate_data( graph, n = 100, dist_mean = 1000, dist_dispersion = 100, link = negative.binomial.special()$linkfun, pop_size = 0, latent = 0 ) ## S4 method for signature 'matrix' simulate_data( graph, n = 100, dist_mean = 1000, dist_dispersion = 100, link = negative.binomial.special()$linkfun, pop_size = 0, latent = 0 )
graph |
Graph to simulate on |
n |
Number of samples |
dist_mean |
distribution mean as numeric |
dist_dispersion |
distribution dispersion (actually dispersion^-1) as a scalar |
link |
special link function for the negative binomial distribution |
pop_size |
numeric for the population size, e.g., pop_size=1000 adds 1000-n random genes not in the graph |
latent |
number of latent variables |
graph
dag <- create_random_DAG(30, 0.2) X <- simulate_data(dag)