R/print.aidsConsist.R

Defines functions print.aidsConsist

Documented in print.aidsConsist

print.aidsConsist <- function( x, ... ) {
   cat( "\nChecking theoretical consistency of an " )
   if( x$mono$priceIndex == "TL" ) {
      cat( "Almost Ideal Demand System (AIDS):\n" )
   } else {
      cat( "Linear Approximate Almost Ideal Demand System (LA-AIDS):\n" )
   }

   # Addinp-up
   cat( "The adding-up condition is" )
   if( !x$addingUp ) {
      cat( " NOT" )
   }
   cat( " fulfilled\n" )

   # homogeneity
   cat( "The homogeneity condition is" )
   if( !x$homogeneity ) {
      cat( " NOT" )
   }
   cat( " fulfilled\n" )

   # symmetry
   cat( "The symmetry condition is" )
   if( !x$symmetry ) {
      cat( " NOT" )
   }
   cat( " fulfilled\n" )

   # monotonicity
   print( x$mono, header = FALSE )

   # concavity
   if( !is.null( x$concav ) ) {
      print( x$concav, header = FALSE )
   }
   invisible( x )
}

Try the micEconAids package in your browser

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

micEconAids documentation built on May 20, 2022, 5:05 p.m.