Announcement

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

  • SFTFE command error

    Hi,
    I am trying to run the command "SFTFE" for the stochastic frontier function with heteroscedastic. When I execute the command "sftfe ln_y ln_x, est(pde) dist(exp) emean(z) usigma(z)", this error message appear

    variance(): 3301 subscript invalid
    _sftfe_Get_SoL_and_PoSt_ReS(): - function returned error
    _sftfe_sf_est_ml(): - function returned error
    <istmt>: - function returned error
    How can I fix this problem? Any help is highly appreciated

    Best regards,
    Jo
    Last edited by Johanes Gambe; 04 Oct 2022, 04:15. Reason: adding tag

  • #2
    The error message is uninformative to anyone other than the authors of the community contributed sftfe command. It tells the authors of a problem with their code, but makes no sense to the user.

    With that said, I note that your command is
    Code:
    sftfe ln_y ln_x, est(pde) dist(exp) emean(z) usigma(z)
    But the output of help sftfe tells us that for est(pde) the emean() option is only used with the dist(tnormal) option. Perhaps that caused a problem that sftfe overlooked.

    Comment


    • #3
      Hi William, Thank you so much for your suggestion, and I really appreciate it. Today I have found the solution. The problem is that I use Stata 17. When I use Stata 15 it works.

      Comment

      Working...
      X