Learn R Programming

micEconCES (version 1.0-2)

MishraCES: Mishra's (2006) CES data

Description

The MishraCES data set contains artificial production data. It has 50 observations (e.g. firms, sectors, or countries).

Usage

data(MishraCES)

Arguments

Format

This data frame contains the following columns:

No

Firm number.

Y

Output quantity.

X1

Quantity of first input.

X2

Quantity of second input.

X3

Quantity of third input.

X4

Quantity of fouth input.

Examples

Run this code
   # load the data set
   data( "MishraCES" )
   
   # show mean values of all variables
   colMeans( MishraCES )

   # re-calculate the endogenous variable (see Mishra 2006)
   # coefficients of the nested CES function with 4 inputs
   b <- c( "gamma" = 200 * 0.5^(1/0.6), "delta_1" = 0.6, "delta_2" = 0.3, 
      "delta" = 0.5, "rho_1" = 0.5, "rho_2" = -0.17, "rho" = 0.6 )
   MishraCES$Y2 <- cesCalc( xNames = c( "X1", "X2", "X3", "X4" ), 
      data = MishraCES, coef = b, nested = TRUE )
   all.equal( MishraCES$Y, MishraCES$Y2 )

Run the code above in your browser using DataLab