The updated version of asdoc can now create a table of correlation with significance levels starred at different levels. The new version can be installed by typing the following line in Stata.
Installation of the new version
net install asdoc, from(http://fintechprofessor.com) replace
sysuse auto, clear asdoc pwcorr price mpg rep78 headroom trunk weight length turn , star(all) replace nonum
Just like with any other Stata command, we would write asdoc as a prefix to the Stata command. In this case, the Stata command is pwcorr which is followed by the variable names. After the comma, we added option nonum, star(all) and replace. These are explained bellow:
star(all) = This option is used to report stars to signfy significance at different levels. These are: ***
- *** to show significance at 1% or bellow
- ** to show significance at 5% or bellow
- * to show significance at 10% or bellow
nonum = Without using this option, asdoc will report numeric numbers as column headers
replace = This option replaces any existing file
You would be interested in this blog entry where I show several useful options of asdoc that can be used with correlation tables.