Dear Statalisters,

The maximum number of numeric literals allowed in a Stata 15 expression is 300. This may be a severely limiting constraint when estimating fairly complex structural models. To understand the nature of the problem, consider this simple example:

Code:
gmm (y - {b0} - {b1}*x1 - {b2}*x2 - ... - {b300}*x300), instruments(x1 x2 ... x300)
In this case one would get the following error message (because there are 301 numeric literals: {b0}, {b1}, ... {b300}):

Code:
too many numeric literals
could not evaluate equation 1
Do you know if there are ways around this constraint after all the possible expression simplifications have been implemented?

Many thanks in advance,

Giulio