Dear Statalist members,
I would like to run a SFA loop to get efficiency estimates for a worldwide sample for 28 years. I group firms based on Country and Fama and French classification and then run the following loop
egen group = group(CountryID FamaFrench)
generate eff=.
forvalue i= 1(1)20 {
sfpanel Sales CostofGoodsSold SellingGeneralAdminExpenses PropertyPlantandEquipment if group==`i'
predict temp`i', bc
replace eff= temp`i' if group==`i'
drop temp`i'
}
The loop runs for a number of groups but then stops and gives the following error:
"initial: Log likelihood = -<inf> (could not be evaluated)
could not find feasible values
r(491); "
I have dropped observations with missing values. I also think it is not because of the number of observations, because the loop has already run for a group with less observations.
I understand that it has to do with ML maximization but I don't know whether and how I can solve it. Any ideas regarding how I could solve it?
Yours sincerely
Periklis Boumparis
Related Posts with Stochastic Frontier Analysis Loop
Stacked bar graph: percentage of total observations, by groupsHello, I would like to produce a graph that shows the percentage of total observations (code_7), ov…
ComandesHello, I’m trying to use the PISA dataset but I’m not being able convert it from SAS and SPSS. It i…
unbalanced panel data with endogenous explanatory variable and some unobservable variablesHi All, I'm struggling with an equation that has an endogenous regressor (sample selection bias) and…
How to get conditional maximum dates and values?Hi all, I would like to find the largest % of institutional ownership for each deal, for example, f…
i am using panel datai am using panel data and if i run the analysis it shows me that the resul of one variable "Age of P…
Subscribe to:
Post Comments (Atom)
0 Response to Stochastic Frontier Analysis Loop
Post a Comment