Learn R Programming

miscTools (version 0.6-28)

quasiconcavity: Test for quasiconcavity / quasiconvexity

Description

Test wether a function is quasiconcave or quasiconvex. The bordered Hessian of this function is checked by quasiconcavity() or quasiconvexity().

Usage

quasiconcavity( m, tol = .Machine$double.eps )
   quasiconvexity( m, tol = .Machine$double.eps )

Value

locigal or a logical vector (if m is a list).

Arguments

m

a bordered Hessian matrix or a list containing bordered Hessian matrices

tol

tolerance level (values between -tol and tol are considered to be zero).

Author

Arne Henningsen

References

Chiang, A.C. (1984) Fundamental Methods of Mathematical Economics, 3rd ed., McGraw-Hill.

Examples

Run this code
   quasiconcavity( matrix( 0, 3, 3 ) )

   quasiconvexity( matrix( 0, 3, 3 ) )

   m <- list()
   m[[1]] <- matrix( c( 0,-1,-1, -1,-2,3, -1,3,5 ), 3, 3 )
   m[[2]] <- matrix( c( 0,1,-1, 1,-2,3, -1,3,5 ), 3, 3 )

   quasiconcavity( m )

   quasiconvexity( m )

Run the code above in your browser using DataLab