Hello everybody,
I am trying to save some lines of commands using loops but I am having some troubles in understanding which is the problem with these lines
Stata displays an r(198) error, "14 invalid name". I have looked at forvalues help file but it seems to me that the syntax I have used is correct.
Which can be the problem?
Thank you
I am trying to save some lines of commands using loops but I am having some troubles in understanding which is the problem with these lines
Code:
forvalues i = 14/21 {
egen avgpriceUSD_lead`i' = rowmean($gprice_USD_lead`i')
}
Which can be the problem?
Thank you

Comment