50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


prodest (version 1.0.1)

prodestWRDG: Estimate productivity - IV Wooldridge method

Description

The prodestWRDG() function accepts at least 6 objects (id, time, output, free, state and proxy variables), and returns a prod object of class S3 with three elements: (i) a list of model-related objects, (ii) a list with the data used in the estimation and estimated vectors of first-stage residuals, and (iii) a list with the estimated parameters and their bootstrapped standard errors.

Usage

prodestWRDG(Y, fX, sX, pX, idvar, timevar, cX = NULL)

Arguments

Y

the vector of value added log output.

fX

the vector/matrix/dataframe of log free variables.

sX

the vector/matrix/dataframe of log state variables.

pX

the vector/matrix/dataframe of log proxy variables.

cX

the vector/matrix/dataframe of control variables. By default cX= NULL.

idvar

the vector/matrix/dataframe identifying individual panels.

timevar

the vector/matrix/dataframe identifying time.

Value

The output of the function prodestWRDG is a member of the S3 class prod. More precisely, is a list (of length 3) containing the following elements:

Model, a list containing:

  • method: a string describing the method ('WRDG').

  • elapsed.time: time elapsed during the estimation.

  • opt.outcome: optimization outcome.

Data, a list containing:

  • Y: the vector of value added log output.

  • free: the vector/matrix/dataframe of log free variables.

  • state: the vector/matrix/dataframe of log state variables.

  • proxy: the vector/matrix/dataframe of log proxy variables.

  • control: the vector/matrix/dataframe of log control variables.

  • idvar: the vector/matrix/dataframe identifying individual panels.

  • timevar: the vector/matrix/dataframe identifying time.

Estimates, a list containing:

  • pars: the vector of estimated coefficients.

  • std.errors: the vector of bootstrapped standard errors.

Members of class prod have an omega method returning a numeric object with the estimated productivity - that is: ωit=yit(α+witβ+kitγ). FSres method returns a numeric object with the residuals of the first stage regression, while summary, show and coef methods are implemented and work as usual.

Details

Consider a Cobb-Douglas production technology for firm i at time t

  • yit=α+witβ+kitγ+ωit+ϵit

where yit is the (log) output, w_it a 1xJ vector of (log) free variables, k_it is a 1xK vector of state variables and ϵit is a normally distributed idiosyncratic error term. The unobserved technical efficiency parameter ωit evolves according to a first-order Markov process:

  • ωit=E(ωit|ωit1)+uit=g(ωit1)+uit

and uit is a random shock component assumed to be uncorrelated with the technical efficiency, the state variables in kit and the lagged free variables wit1. Wooldridge method allows to jointly estimate OP/LP two stages jointly in a system of two equations. It relies on the following set of assumptions:

  • a) ωit=g(xit,pit): productivity is an unknown function g(.) of state and a proxy variables;

  • b) E(ωit|ωit1)=f[ωit1], productivity is an unknown function f[.] of lagged productivity, ωit1.

Under the above set of assumptions, It is possible to construct a system gmm using the vector of residuals from

  • r1it=yitαwitβxitγg(xit,pit)

  • r2it=yitαwitβxitγf[g(xit1,pit1)]

where the unknown function f(.) is approximated by a n-th order polynomial and g(xit,mit)=λ0+c(xit,mit)λ. In particular, g(xit,mit) is a linear combination of functions in (xit,mit) and cit are the addends of this linear combination. The residuals rit are used to set the moment conditions

  • E(Zitrit)=0

with the following set of instruments:

  • Z1it=(1,wit,xit,cit)

  • Z2it=(wit1,cit,cit)

Following previous assumptions, being f(ω)=δ0+δ1(citλ)+δ2(citλ)2+...+δG(citλ)G, one can set δ1=G=1 and estimate the model in a linear fashion - i.e., using a linear 2SLS model.

References

Wooldridge, J M (2009). "On estimating firm-level production functions using proxy variables to control for unobservables." Economics Letters, 104, 112-114.

Examples

Run this code
# NOT RUN {
    data("chilean")

    # we fit a model with two free (skilled and unskilled), one state (capital)
    # and one proxy variable (electricity)

    WRDG.IV.fit <- prodestWRDG_GMM(chilean$Y, fX = cbind(chilean$fX1, chilean$fX2),
                                    chilean$sX, chilean$pX, chilean$idvar, chilean$timevar)

    # show results
    WRDG.IV.fit

    
# }
# NOT RUN {
      # estimate a panel dataset - DGP1, various measurement errors - and run the estimation
      sim <- panelSim()

      WRDG.IV.sim1 <- prodestWRDG_GMM(sim$Y, sim$fX, sim$sX, sim$pX1, sim$idvar, sim$timevar)
      WRDG.IV.sim2 <- prodestWRDG_GMM(sim$Y, sim$fX, sim$sX, sim$pX2, sim$idvar, sim$timevar)
      WRDG.IV.sim3 <- prodestWRDG_GMM(sim$Y, sim$fX, sim$sX, sim$pX3, sim$idvar, sim$timevar)
      WRDG.IV.sim4 <- prodestWRDG_GMM(sim$Y, sim$fX, sim$sX, sim$pX4, sim$idvar, sim$timevar)

      # show results in .tex tabular format
      printProd(list(WRDG.IV.sim1, WRDG.IV.sim2, WRDG.IV.sim3, WRDG.IV.sim4),
                parnames = c('Free','State'))
    
# }
# NOT RUN {
  
# }

Run the code above in your browser using DataLab