get_DAG {ISS} | R Documentation |
get_DAG
Description
This function is used to construct the induced DAG, induced polyforest and
reverse topological orderings thereof from a numeric matrix X0
. See
Definition 2 in Müller et al. (2023).
Usage
get_DAG(X0, sparse = FALSE, twoway = FALSE)
Arguments
X0 |
a numeric matrix. |
sparse |
logical. Either the induced DAG ( |
twoway |
logical. If |
Value
A list with named elements giving the leaves, parents, ancestors and
reverse topological ordering and additionally, if twoway == TRUE
, the
roots, children and descendants, of the constructed graph.
References
Müller MM, Reeve HWJ, Cannings TI, Samworth RJ (2023). “Isotonic subgroup selection.” arXiv preprint arXiv:2305.04852.
Examples
X <- rbind(
c(0.2, 0.8), c(0.2, 0.8), c(0.1, 0.7),
c(0.2, 0.1), c(0.3, 0.5), c(0.3, 0)
)
get_DAG(X0 = X)
get_DAG(X0 = X, sparse = TRUE, twoway = TRUE)