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
Test difference between predicted valuesHello, I have a model which is regressing log wages on being immigrant/native. However, immigrant a…
Map integration: Distance from tube station?Is there a Stata package that can calculate the distance of an address from a category of landmarks?…
Interpreting AME after margins commandDear all, I am using the -margins- command to estimate the impact of several binary explanatory var…
Calculating the proportion of observations that fulfill successive conditionsDear Statalisters, I have data following movements of cyclists through designated checkpoints. Each…
Fitting Random Slope in Mixed ModelsGreetings Experts, I use stata version 15.0. I have longitudinal data that I am trying to fit some …
Subscribe to:
Post Comments (Atom)
0 Response to Stochastic Frontier Analysis Loop
Post a Comment