dag_test_MG: dag_test_MG

View source: R/dag_test_MG.R

dag_test_MGR Documentation

dag_test_MG

Description

Implements the graph-testing procedures proposed by \insertCitemeijer2015multiple;textualISS for one-way logical relationships. Here implemented for the specific application to isotonic subgroup selection.

Usage

dag_test_MG(
  X0,
  p,
  alpha,
  version = c("all", "any"),
  leaf_weights,
  sparse = FALSE
)

Arguments

X0

a numeric matrix giving points corresponding to hypotheses.

p

a numeric vector taking values in (0, 1] such that length(p) == nrow(X0).

alpha

a numeric value in (0, 1] specifying the Type I error rate.

version

either "all" for the all-parent version of the procedure or "any" for the any-parent version of the procedure.

leaf_weights

optional weights for the leaf nodes. Would have to be a numeric vector of the same length as there are leaf nodes in the DAG (resp. polytree, see sparse) induced by X0.

sparse

a logical value specifying whether X0 should be used to induce a DAG (FALSE) or a polytree (TRUE).

Value

A boolean vector of the same length as p with each element being TRUE if the corresponding hypothesis is rejected and FALSE otherwise.

References

\insertRef

meijer2015multipleISS

Examples

X0 <- rbind(c(0.5, 0.6), c(0.8, 0.9), c(0.9, 0.8))
p <- c(0.02, 0.025, 0.1)
alpha <- 0.05
dag_test_MG(X0, p, alpha)
dag_test_MG(X0, p, alpha, version = "any")
dag_test_MG(X0, p, alpha, sparse = TRUE)


ISS documentation built on July 9, 2023, 5:13 p.m.

Related to dag_test_MG in ISS...