Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • CES Production Function

    Hi! I want to fit a CES production function with the following variables( valueadded, kapital(capi), wages(salprod), raw materials(matprim), electricity(enelec) ) and its logarithms, I run the following command:

    nl (lva={b0} -(1/{rho}*ln({alpha}*salprod^(-1*{rho})+ ({delta})*capi^(-1*{rho}))+({gammaa})*matprim^(-1*{rho}))+({sigma})*enelec^(-1*{rho})))) , but Stata gives the error message "varlist not allowed"

    Another option that I´ve tried is

    nl (lva={b0} -(1/{rho}*ln({delta}*salprod^(-1*{rho})+ (1-{delta})*capi^(-1*{rho})))),initial (rho 1 delta 0.5)
    with only two variables, and Stata gives the error message "starting values invalid or some RHS variables have missing values"

    What can I do??

    Carmen


  • #2
    Code:
    nl (lva={b0} -(1/{rho}*ln({alpha}*salprod^(-1*{rho})+ ({delta})*capi^(-1*{rho}))+({gammaa})*matprim^(-1*{rho}))+({sigma})*enelec^(-1*{rho}))))
    I saved this command text as a file and ran it through hexdump and found a problem, namely unmatched parentheses:

    Code:
        040  28  (                  10
        041  29  )                  12
    NB: please use CODE delimiters as requested. Commands like that are hard to read at the best of times, and harder still as ordinary text.

    Comment


    • #3
      Yes, I correct this but now, the error message is "varlist no allowed"

      Comment


      • #4
        I don't even know what the function should be. Not likely to be a problem, but

        Code:
        -{rho}
        is surely simpler than

        Code:
        -1*{rho}
        To play with this, we would need a small data example with values of

        Code:
         
         lva salprod capi matprim enelec

        Comment

        Working...
        X