rADMGdist | R Documentation |
Generate a distribution from an ADMG model
rADMGdist(graph, dims, map, r = TRUE, alpha = 1, new = FALSE)
graph |
an ADMG object of class |
dims |
integer vector of dimensions of distribution |
map |
optionally, the output of |
r |
logical indicating whether or not recursive factorizations should be used |
alpha |
parameter to scale Beta distribution down by. |
new |
logical - should projection method be used? |
Under the default method, a random distribution is
obtained by starting with the uniform distribution, and adding an
independent (scaled) normal random variables to each Moebius parameter. We
then scale the move to reach approximately the boundary of the simplex,
and then pick a value between the uniform distribution and the boundary
point using a Beta distribution. The parameter alpha
being larger
favours distributions closer to the uniform distribution.
Under the new
method, a random dirichlet (with parameters alpha
)
is mapped to the Moebius parameters, and then these parameters are mapped to
probabilities. If any of these are negative, then each district is moved
towards the uniform distribution until it becomes positive.
Object of class moebius
giving generalized Moebius parameters
for a distribution in the model associated with graph
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.