I want to estimate a Linear Expenditure System based on the Stone-Geary utility function:

where:




Maximizing this function subject to the expenditure restriction



Time series form of the above equation is:

At first, I estimate


And after estimation of

But I don’t know how to estimate it in RATS by SUR. I don't know how to write a program for it in RATS.
I would be grateful if you could possibly guide me through it.