Hi all,

I am using asdoc from SSC in Stata 13 and I am trying to configurate a little detail in a column that display category , example:

Code:
*ssc install asdoc
sysuse auto, clear

asdoc, row(category,Variable,  Mean) replace

levelsof foreign, local(levels)
local nombre: value label foreign

foreach k of local levels {
  local vl: label `nombre' `k'

    foreach v of varlist price mpg trunk {

       local mylabel : variable label `v'
              sum `v' if foreign == `k'

       asdoc, row(`vl' ,`v', `r(mean)')
    }
}
The table result is: Array



But I would like if its possible get a table like this: Array
I tried with:

Code:
foreach k of local levels {
    local vl: label `nombre' `k'

    foreach v of varlist price mpg trunk {

       local mylabel : variable label `v'
              sum `v' if foreign == `k'

       asdoc, row(\i ,`v', `r(mean)')
    }
asdoc, text(`vl')
}
But i failed:

Array

Thanks in advance

Regards
Rodrigo