I try to use tuples in the loop of tuples, however, it got some error: invalid 'y2'
Does anyone know command tuples and give me a tips why the syntax is wrong?
Is it because the citation of "`ntuples'", how to correct this?
Does anyone know command tuples and give me a tips why the syntax is wrong?
Is it because the citation of "`ntuples'", how to correct this?
Code:
tuples x1 x2
forvalues i = 1/`ntuples' {
tempvar varIV`i'
gegen `varIV`i''=rowmean(`tuple`i'')
tuples y1 y2
forvalues k = 1/`ntuples' {
tempvar varDV`k'
gegen `varDV`k''=rowmean(`tuple`k'')

Comment