I try to estimate a stochastic frontier model with a cost to sales ratio (variable RATIO) as dependent variable using the following model:
The last term means that the inefficiency term ui,t is again conditional on further explanatory variables (here ln(VAR4) and VAR5).
Given the above model, the correct command using the STATA build-in frontier would be I guess (I was not able to implement a conditional inefficiency term using xtfrontier):
However, the estimation iteration-process always produces log-likelihood values with the additional comment "(backed up)" and then runs forever...
Alternatively, if I use the user-written command sfpanel (ssc install sfpanel) as follows
STATA always returns the following error: "could not calculate numerical derivatives -- flat or discontinuous region encountered"..
What am I doing wrong here? Am I using the wrong STATA commands for the model described above?
Code:
ln(RATIO)i,t = b1*ln(VAR1)i,t + b2*ln(VAR2)i,t + b3*(VAR3)i,t + vi,t + ui,t where v~N[0,sv²] and u~TN+[b'Fi,t, su2]
Given the above model, the correct command using the STATA build-in frontier would be I guess (I was not able to implement a conditional inefficiency term using xtfrontier):
Code:
frontier lnRATIO lnVAR1 lnVAR2 VAR3, cost distribution(tnormal) cm(lnVAR4, VAR5)
Alternatively, if I use the user-written command sfpanel (ssc install sfpanel) as follows
Code:
sfpanel lnRATIO lnVAR1 lnVAR2 VAR3, cost model(bc95) emean(lnVAR4, VAR5)
What am I doing wrong here? Am I using the wrong STATA commands for the model described above?
Comment