In this presentation, the author presents a procedure and an illustrative application of a user-written Allocation Model(AE) in Stata. AE measures allocative efficiency and economic efficiency as well as technical efficiency when price and cost information of production are available. This model is an extension of basic DEA models which are also written by the author.