New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StoNED: can not get unconditional expected inefficiency #38
Comments
Here is the example code: # import packages
from pystoned import CNLS, StoNED
from pystoned.dataset import load_Finnish_electricity_firm
from pystoned.constant import CET_MULT, FUN_COST, RTS_VRS, RED_KDE
# import Finnish electricity distribution firms data
data = load_Finnish_electricity_firm(x_select=['OPEX', 'CAPEX'], y_select=['Energy'])
# build and optimize the CNLS model
model = CNLS.CNLS(data.y, data.x, z=None, cet=CET_MULT, fun=FUN_COST, rts=RTS_VRS)
model.optimize('email@address')
# retrive the unconditional expected inefficiency \mu
rd = StoNED.StoNED(model)
print(model.get_unconditional_expected_inefficiency('KDE')) |
Hi @ds2010 |
Oh, MG! Thx! The Line 213: |
It'll affect the value of the |
Did you consider about DDF with the get_frontier? |
For sake of simplicity, I think we need to make a restriction on output |
First of all, the StoNED have been designed considering CNLS, CNLSG, and also CNLSDDF. |
The StoNED frontier (get_frontier) is different from the CNLS frontier (which is actually the CNLS estimated function). So, we should keep it in the StoNED.py. |
Hi @JulianaTa , It seems that there is a bug in StoNED.py when calculating the unconditional expected inefficiency. Please check the following error and fix it. Thanks in advance!
The text was updated successfully, but these errors were encountered: