asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Decimals and the base level category in factor variables Reply To: Decimals and the base level category in factor variables

Dr. Attaullah Shah
Keymaster
Post count: 106

Hello Ozer Erdem
On your request, I have added option dect() to control the decimal points of standard errors, t-values, or p-value in the nested regressions. I have also fixed the issue with the nofvlabel option. Here is one example where I used the default three decimal places for regression coefficients and two decimal points for standard errors.

sysuse auto, clear
asdocx reg price mpg i.foreign##c.rep78, replace nest 
asdocx reg price mpg rep78 headroom, nest
asdocx reg price mpg rep78 headroom weight , nest 
asdocx reg price mpg rep78 weight , nest dect(2) nofvlabel

asdocx nested decimal points for t-values p-values se

You may like to note that asdocx considers all formatting options of the last command used. You may add these options in each line of code, that does not do any harm though.