This is a statistics question--
In STATA, you can specify the minimum eigen value so that the optimal number of factors are chosen.
. forvalues i=1/11{