Learn R Programming

causalDisco (version 1.0.1)

print.Disco: Print a Disco Object

Description

Print a Disco Object

Usage

# S3 method for Disco
print(x, compact = FALSE, wide_vars = FALSE, ...)

Value

Invisibly returns the Disco object.

Arguments

x

A Disco object.

compact

Logical. If TRUE, prints a more compact summary.

wide_vars

Logical. If TRUE, prints the variables in a wide format.

...

Additional arguments (not used).

Examples

Run this code
data(tpc_example)
kn <- knowledge(
  tpc_example,
  tier(
    child ~ starts_with("child"),
    youth ~ starts_with("youth"),
    old ~ starts_with("old")
  )
)
cd_tges <- tpc(engine = "causalDisco", test = "fisher_z")
disco_cd_tges <- disco(data = tpc_example, method = cd_tges, knowledge = kn)
print(disco_cd_tges)
print(disco_cd_tges, wide_vars = TRUE)
print(disco_cd_tges, compact = TRUE)

Run the code above in your browser using DataLab