Dear collegues,
I want to create mean of variables in a loop and I use the following command
foreach var of varlist x1 x2 x3 {
asdoc table `var', c(mean y1)
}
I get result for x1 but ASDOC is not working and I get error message:
astable(): 3301 subscript invalid
<istmt>: - function returned error
Any idea how I can make 'asdoc' to work?
I want to create mean of variables in a loop and I use the following command
foreach var of varlist x1 x2 x3 {
asdoc table `var', c(mean y1)
}
I get result for x1 but ASDOC is not working and I get error message:
astable(): 3301 subscript invalid
<istmt>: - function returned error
Any idea how I can make 'asdoc' to work?
Comment