Description Usage Arguments Value Examples
Generate binary (Y, A, C) from chain graph model under simplest scenario.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
n.unit |
the number of units ( |
n.gibbs |
the number of independent Gibbs sampler. |
n.sample |
the number of samples from each Gibbs sampling ( |
weight.matrix |
a |
treat.matrix |
a |
cov.matrix |
a |
init.prob |
an initial probability generating (Y, A, C) from Bernoulli distribution. |
treat.prob |
a probability updating A in Gibbs sampling procedure. |
cov.prob |
a probability updating C in Gibbs sampling procedure. |
n.burn |
the number of burn-in sample in Gibbs sampling (≥ |
yvalues |
a vector of distinct binary outcome values. Defaults to |
a list of [n.gibbs] x [n.sample]
independent observations:
|
a |
|
a |
|
a |
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.