Description Usage Arguments Value
This function generates the outcomes using Gibbs sampling under the given treatment assignment and edge information.
1 2 | chaingibbs(pars, n.obs, treatment, covariates, initprob = 0.5,
yvalues = c(0, 1), Neighborind, Neighborpar, n.burn)
|
pars |
a set of parameters |
n.obs |
the number of Gibbs samples. |
treatment |
a set of given treatment assignment of length |
covariates |
given confounder(s):
|
initprob |
an initial probability generating outcomes. Defaults to |
yvalues |
distinct binary values for outcomes. Defaults to |
Neighborind |
a list of matrix specifying edge information of which first column illustrates a type of variables (1:outcome, 2:treatment, 3~:confounders) and of which second column presents the index of those variable. |
Neighborpar |
index for parameters in the order of Neighborind. |
n.burn |
the number of burn-in sample in Gibbs sampling (≥ |
a [n.obs x m]
matrix each row of which consists of outcomes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.