rmixedgraph: Generate distributions from an ADMG model

View source: R/probdist.R

rmixedgraphR Documentation

Generate distributions from an ADMG model

Description

Generate distributions from an ADMG model

Usage

rmixedgraph(n, graph, dims, r = TRUE, alpha = 1)

Arguments

n

number of distributions to generate

graph

an object of class graph

dims

integer vector of dimensions of distribution

r

logical indicating whether or not recursive factorizations should be used

Details

The 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.

Value

Object of class tables giving distributions Markov with respect to a distribution in the model associated with graph.


rje42/ADMGs2 documentation built on Sept. 3, 2024, 7:39 p.m.