inst/roxygen-examples/dot-pcalg_constraints_from_knowledge-example.R

data(tpc_example)

kn <- knowledge(
  tpc_example,
  tier(
    child ~ tidyselect::starts_with("child"),
    youth ~ tidyselect::starts_with("youth"),
    oldage ~ tidyselect::starts_with("oldage")
  )
)

pc_cons <- .pcalg_constraints_from_knowledge(
  kn,
  labels = names(tpc_example),
  directed_as_undirected = TRUE
)
pc_cons

Try the causalDisco package in your browser

Any scripts or data that you put into this service are public.

causalDisco documentation built on April 13, 2026, 5:06 p.m.