Dear all,
I'm a beginner in Stata programming.
I don't understand why this syntax is invalid
forvalues i=2/4 {
2. forvalues j=1/nb_exam[`i'] {
3. dis nb_exam[`j']
4. }
5. }
invalid syntax
I have tried
forvalues i=2/4 {
2. forvalues j=1/`nb_exam[`i']' {
3. dis nb_exam[`j']
4. }
5. }
invalid syntax
It's not better.
Can someone explain me ?
Thank you
Alvine
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/