Description Usage Arguments Examples
View source: R/ludwig_functions.R
This function is intended to simulate data from a binary network given a user defined or randomly generated starting state and a vector of coefficients. Two methods of simulating states from the conditional distributions are provided: random updating or sequential updating. A burn-in parameter is provided to allow for running the update process a desired number of iterations before the actual sampling process starts.
1 |
k_sim |
the number of nodes. |
coef |
a vector containing the coefficients of the network to simulate from. The first parameters in the vector are the thresholds. The remainig parameters are the upper diagonal of a weight matrix in sequential, row-wise order. |
n_burnin |
the number of burn-in cycles. |
n_rep |
the desired number of sampled states. |
start_state |
provide a binary verctor as a starting state. If omitted, a random state will be generated as a starting state. |
order |
either |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.