A spatial stochastic frontier model with endogenous frontier and environmental variables · Study