R/print.npsf.R

Defines functions print.npsf

print.npsf <- function( x, digits = NULL, ... ) {

   if( is.null( digits ) ) {
      digits <- max( 3, getOption( "digits" ) - 2 )
   }
   cat( "\nCall:\n" )
   cat( deparse( x$call ) )
   cat( "\n\n" )
   if(x$model == "sfsc"){
    if(!is.null(x$coef)){
     # printCoefmat(x$table, digits = digits)
     print.default(coef(x), digits = digits)
    }
   }
   invisible( x )
}

Try the npsf package in your browser

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

npsf documentation built on Nov. 23, 2020, 1:07 a.m.