rDAGdist: Generate a distribution from a DAG model

View source: R/probdist.R

rDAGdistR Documentation

Generate a distribution from a DAG model

Description

Simulate conditional probability tables to obtain a discrete DAG model that is Markov with respect to the graph.

Usage

rDAGdist(n, graph, dims = rep(2L, nv(graph)), alpha = 1)

Arguments

n

number of distributions to simulate

graph

a DAG object of class mixedgraph

dims

integer vector of dimensions of distribution

alpha

parameter to use in Dirichlet distribution

Details

Simulated conditional probability tables for each node given its parents, and uses this to obtain the joint distribution.


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