simu_px_tree_dirichlet: Simulate Dirichlet extremal functions on a tree

View source: R/simulation_helpers.R

simu_px_tree_dirichletR Documentation

Simulate Dirichlet extremal functions on a tree

Description

Simulates Dirichlet extremal functions on a tree

Usage

simu_px_tree_dirichlet(n, alpha.start, alpha.end, A)

Arguments

n

Number of simulations.

alpha.start

Numeric vector with d-1 elements, where d is the number of nodes in the tree (and d-1 is the number of edges).

alpha.end

Numeric vector with d-1 elements, where d is the number of nodes in the tree (and d-1 is the number of edges).

A

Numeric \dxd1 matrix; the rows represent the nodes in the tree, the columns represent the edges. For a fixed node k = 1, \dots, d, each entry (i, j) is equal to 1 if the edge in position j is on the directed path from node k to node i in the polytree rooted at node k.

Value

Numeric \nxd matrix. Simulated data.


graphicalExtremes documentation built on May 29, 2024, 8:35 a.m.