Home › Forums › ASDOC : Easy Publication Quality Tables in Stata › Exporting Granger causality results after running syntax ‘pvar’ in stata › Reply To: Exporting Granger causality results after running syntax ‘pvar’ in stata
Hello Amina,
pvar is a community-contributed program, which asdoc is not aware of. However, you can use the matrix left behind ny the pvargrager command and write it with asdoc, as mentioned in Section 12 of the asdoc’s help file. Here is one example. Please do remember to visit the asdocx program, which is more powerful and can export to Excel, LaTeX, and docx formats.
webuse nlswork2
xtset idcode year
generate wage = exp(ln_wage)
pvar wage hours
mat t = r(pgstats)
asdoc wmat, mat(t) replace
-----------------------------------------------
| chi2 df Prob > ~2
-------------+---------------------------------
wage |
hours | 9.199 1.000 0.002
ALL | 9.199 1.000 0.002
-------------+---------------------------------
hours |
wage | 17.162 1.000 0.000
ALL | 17.162 1.000 0.000
-----------------------------------------------
-
This reply was modified 5 years, 10 months ago by
Attaullah Shah.
-
This reply was modified 5 years, 10 months ago by
Attaullah Shah.
-
This reply was modified 5 years, 10 months ago by
Attaullah Shah.
-
This reply was modified 5 years, 10 months ago by
Attaullah Shah.