R/print.int.R

Defines functions print.int

Documented in print.int

print.int <- function(x,
                      ...)
 
  
  
{
  
  # Sign Defined?  
  if(x$sign == 0) sign <- "NA" else sign <- x$sign 
  
  # Signtext
  if(x$sign == 0) signtext <- " (Not defined)"
  if(x$sign == 1) signtext <- " (Positive)"
  if(x$sign == -1) signtext <- " (Negative)"
  
  # Create Console Output
  cat('Interaction:', paste(x$variables, collapse = "-"),
        '\nWeight: ', x$edgeweight,
        '\nSign: ' , sign, signtext)

}
  
  

Try the mgm package in your browser

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

mgm documentation built on Sept. 8, 2023, 6:05 p.m.