Home › Forums › ASDOC : Easy Publication Quality Tables in Stata › How to report pvalues in asdoc nested table
Tagged: asdoc, nested table, pvalues, Stata

AuthorPosts

ConnorGuestJanuary 17, 2020 at 5:24 amPost count: 118
First of all thank you so much for creating this wonderful tool!
I want to ask if it is possible to report the p values instead of Standard Error in the nested table. I understand that the *** stars are meant to measure the significance level but I wonder if the p value itself can be visualized in the table.
Thank you so much. I truly appreciate it.
I updated asdoc today to add support for reporting pvalues in the nested regression tables. You can now use the option
rep(p)
to report pvalues. rep() option can also be used to report either :1. tvalues using
rep(t)
2. standard errors usingrep(se)
3. pvalues with usingrep(p)
The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
net install asdoc, from(http://fintechprofessor.com) replace
Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.
Following is an example of a nested table with pvalues
*Use auto dataset in our example sysuse auto, clear *First regression of the nested table asdoc reg price mpg rep78, nest rep(p) replace *Second regression, this time I am not using the option
replace
. asdoc reg price mpg rep78 trunk , nest rep(p) *And one more regression asdoc reg price rep78 trunk , nest rep(p) * Following is the output tablePlease do remember to cite asdoc. To cite:
Intext citation
Tables were created using asdoc, a Stata program written by Shah (2018).Bibliography
Shah, A. (2018). ASDOC: Stata module to create highquality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics. This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
ConnorGuestJanuary 17, 2020 at 8:20 amPost count: 118Professor, the nest function is reporting errors after the update.
func_nested_reg(): 3001 expected 25 arguments but received 29 <istmt>:  function returned error
which didn’t occur before using the same code.
 This reply was modified 2 years, 4 months ago by Attaullah Shah.
It seems to me your previous installation still resides somewhere on your system. To completely uninstall all instances of asdoc, please do the following.
You should first uninstall asdoc completely using the following code, then reinstall asdoc and then restart your Stata.
net install uninstall_asdoc, from(http://fintechprofessor.com) replace uninstall_asdoc *And then install asdoc again net install asdoc, from(http://fintechprofessor.com) replace
ChristopherGuestMarch 8, 2020 at 1:20 amPost count: 118Thank you so much for creating this! I have my table outputting pvalues now (thanks!) but I am not longer able to control how many decimals I receive in the output. I want 3 but am only getting 2. I’ve tried using dec(3) and tzok. Is there something about this new version that I should know when trying to specify decimals for my regression output?
Christopher
I just checked it and thedec()
option works fine. Perhaps, after updating asdoc, the old macros were still in the memory, please restart Stata and check again. Or perhaps, you may like to reinstall asdocThe new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
net install asdoc, from(http://fintechprofessor.com) replace
Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.
Please do remember to cite asdoc. To cite:
Intext citation
Tables were created using asdoc, a Stata program written by Shah (2018).Bibliography
Shah, A. (2018). ASDOC: Stata module to create highquality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.ChristopherGuestMarch 12, 2020 at 12:12 amPost count: 118Wonderful! Thank you. I got it to work with OLS. However, when I’m using a logit model, asdoc is pulling in the zscore and not pvalues. Am I doing something wrong?
Katie R.GuestJuly 18, 2020 at 10:12 pmPost count: 118I came to this thread to see if i could add pvalues to my nested tables. It wasn’t working, so I uninstalled then reinstalled the program, closed and restarted STATA. Asdoc will not work at all now (oh no!). It tells me “command asdoc not defined by asdoc.do”. Can you assist? Thank you for the program!
Sometimes this happens due to incomplete transfer of files from the server. The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
net install asdoc, from(http://fintechprofessor.com) replace
Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.
asdocx is now avaialble
A more powerful and flexible version of asdoc is now available. I call it asdocx. You may like to check the details herePlease do remember to cite asdoc. To cite:
Intext citation
Tables were created using asdoc, a Stata program written by Shah (2018).Bibliography
Shah, A. (2018). ASDOC: Stata module to create highquality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.Katie R.GuestJuly 19, 2020 at 3:01 amPost count: 118Thank you! It is now working again. However, rep(p) won’t work. I can get rep(t) and rep(se) to work, but not rep(p). The command will run, but p values display in the table. Any suggestions? Thank you for your time.
Katie R.GuestJuly 19, 2020 at 3:46 amPost count: 118As an update to the last post, when I input rep(p), I get the z values in the tables rather than the p values.
Thanks again.
Please post your code to reproduce the error.
Katie R.GuestJuly 19, 2020 at 9:00 pmPost count: 118asdoc xtreg y x, re robust, nest rep(p) replace
The numbers in paratheses are z values rather than p values. The pvalue should be .068
Table : Regression results
(1)
Example Y
Example X 248373.700*
(1.827)_cons 2546170.801
(1.496)
Observations 161
r2_p .zpvalues are in parentheses
*** p<.01, ** p<.05, * p<.1Thank you again!

AuthorPosts
 You must be logged in to reply to this topic.