Stephen Okiya has asked the following question
I notice that the variable names are truncated in spite of using the option abb(100). Do you know why this is the case?
Answer:
asdoc uses the abbrev() function of Mata. For some reason, the abbrev() function splits the following sentence in half, no matter which value we set for the abbreviation.
loc vari " Child's age when she/he was first fed something other than breast milk" . dis abbrev("`vari'", 32) Child's age when she/he was firs . dis abbrev("`vari'", 100) Child's age when she/he was firs
However, we set the second argument of abbrev() function to missing, then the full sentence is show
. dis abbrev("`vari'", .) Child's age when she/he was first fed something other than breast milk
Therefore, if we prefer not to abbreviate any name or label, just provide missing value for the abb() option of asdoc. So the following will show all the text
asdoc sum Q85, label abb(.)
when I use the label option, the abb(.) trick doesn’t seem to work; I always get 32 characters, and no more.
Michael
Please mention the Stata command with which you are using asdoc.
I am excited to try out your impressive asdoc Stata function for a paper I am about to submit as the outputs look quite attractive. My aim is to have the full variable names show in the outputted tables without any abbreviation of variable names occurring.
However, I noticed that the abbreviation option does not seem to work per the help file. Specifically, longer dependent and independent variable names in the regression tables outputted by asdoc remain cut off regardless of what I specify for abb() or whether I combine it with the label option. The help file says specifying the label and abb() options together should cause the variable name length to be abb + 22.
Here is some example code:
I have the same problem as Michael, the abb(.) still does not show the whole label. I am using pwcorr command
Hi,
I have a related issue with the labels of categorical variables. When I create a table with multiple regressions the labels for the base category of categorical varaibles appears as 0bn or 1bn even when I use label abb(.). What is strange is that if i run just one regression the labels appear correctly but when i add more regressions to the table then they disapper. Below is the code i use.
asdoc reg $yvar1 $fcontrols1, nest label abb(.) save($output/Regressions_v5), replace title(Table 1: BFather’s background characteristics and earnings expectations)
asdoc reg $yvar1 $fcontrols2, nest label abb(.) save($output/Regressions_v5), title(Table 1: Father’s background characteristics and earnings expectations) // controlling for grades GCSEs
Any help would be great!
P.S Thank you so much for this wonderful Stata program
I have fixed this in asdocx, https://fintechprofessor.com/asdocx/
I have fixed the issue. The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.
asdocx is now available
A more powerful and flexible version of asdoc is now available. I call it asdocx. You may like to check the details here
https://fintechprofessor.com/asdocx
Please do remember to cite asdoc. To cite:
In-text citation
Tables were created using asdoc, a Stata program written by Shah (2018).
Bibliography
Shah, A. (2018). ASDOC: Stata module to create high-quality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.