title: How to get value labels as table title using asdoc command in stata?
body: <p>I have a dataset that has a categorical variable(eg: crops) and continuous variables (e.g: yield, price,input costs). I want to summarize the continuous by each category of crop.</p>
  <p>I currently use the below command</p>
  <pre><code>label define crops 1&quot;Paddy&quot; 2&quot;Wheat&quot; 3&quot;Vegetables&quot; 4&quot;Trees&quot;
  label values crops crops
  
  levelsof crop,local (crop)
  foreach i in `crop'{
  
  asdoc sum yield, ///
        stat(N mean median min max iqr p25 p75 ) ///
        label append save(DistributionsMainOutcomes_`today'.doc) ///
        title( Yield: crop`i')
        
  asdoc sum price, ///
        stat(N mean median min max iqr p25 p75 ) ///
        label append save(DistributionsMainOutcomes_`today'.doc) ///
        title( Price: crop`i')```
  </code></pre>
  <p>The problem is the tables generated do not have the name of the crops, they just contain the code of the crops from the variable. Any help on how to get value labels on the table title?</p>