We propose a fairly general individual effects stochastic frontier model, which allows both heterogeneity and inefficiency to change over time. Moreover, our model handles the endogeneity problems if either at least one of the regressors or one-sided error term is correlated with the two-sided...