While this isn't correct, it does inspire some more thought about the feasibility of automatic conversion. Note that the equations are complicated by needing, in some cases eg the $\Delta$ and $t-1$ operators, a vector of values.
pyparsing might be helpful for this, and there's an example that parses basic arithmetic that might be a good starting point. (Someone has packaged up some of this in plusminus, but it doesn't seem very maintained.)
Currently, equations are available in Eviews format and are downloaded into data/model_spec as a CSV file that looks like:
Should these Eviews equations be automatically turned into Python code through some natural language processing, or should they be manually re-coded?
ChatGPT3 had a pretty good first attempt at this. I asked it to convert the first equation from above and it came up with:
While this isn't correct, it does inspire some more thought about the feasibility of automatic conversion. Note that the equations are complicated by needing, in some cases eg the $\Delta$ and $t-1$ operators, a vector of values.