sim | R Documentation |
Simulates a data frame from the multivariate normal distribution generated by a DAG
sim(dag, n)
dag |
a lower triangular matrix representing a DAG or a matrix that can be permutted into such a matrix. |
n |
the number of observations to generate. |
a data frame with one column for each variable in the DAG. The variables are generated from a multivariate normal distribution with mean zero and variance matrix implied by the coefficients of the DAG.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.