R/print.svyCausal.R

Defines functions print.svyCausal

Documented in print.svyCausal

#' Print method for svyCausal objects
#' @param x An object of class \code{svyCausal}.
#' @param ... Additional arguments passed to \code{print}.
#' @return The object \code{x}, invisibly.
#' @method print svyCausal
#'@exportS3Method
# Add this small helper function OUTSIDE your main function
# This tells R: "If someone looks at this object, only show the OR Table"
print.svyCausal <- function(x, ...) {
  cat("\n--- svyCausalGLM Results ---\n")
  print(x$OR_table)
}

Try the svyCausalGLM package in your browser

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

svyCausalGLM documentation built on March 3, 2026, 5:08 p.m.