Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Attaullah Shah
    replied
    I tried to use your do file, however, the wbopendata program produces the following error and I cannot proceed.
    Code:
    command _countrymetadata is unrecognized

    Leave a comment:


  • Pratap Pundir
    replied
    Attaullah Shah Any word on #20 https://www.statalist.org/forums/for...83#post1489083

    Leave a comment:


  • Attaullah Shah
    replied
    Pratap Pundir good suggestions, thanks for taking interest in asdoc and pointing out areas for further improvements.

    Leave a comment:


  • Pratap Pundir
    replied
    Also, 2 issues about citation:
    1. Can you add an option `cite` that adds the citation below the exported output/table? In fact, would be nice if the option had parameters for format, e.g. cite(APA), cite(Harvard), etc
    2. Current suggested citation
    Shah, A. (2018). "asdoc: Create high-quality tables in MS Word from Stata output"
    is a bit sales-y. Perhaps a more academic/factual citation/credit such as
    Shah, A. (2018). "Stata table exported to Word with asdoc"

    Leave a comment:


  • Pratap Pundir
    replied
    Originally posted by Attaullah Shah View Post
    drop(i.qtr) should be included either in each line or in the last line
    What if what I want to drop occurs differs by each nested model, and for some I don't want to drop anything?
    So, for example, if I am doing a bunch of regressions, including couple of FE models, and want to drop _const from the FE models, but not from the other models, how do I go about it? Based on your explanation, if I put the drop(_cons) in the last line/model, then it will be removed from all, which is not what I want. Alternatively, I can add drop() to all models, except the FE models, where I add drop(_cons), but there the problem is that drop() doesn't work.

    Leave a comment:


  • Pratap Pundir
    replied
    Originally posted by Attaullah Shah View Post
    drop(i.qtr) should be included either in each line or in the last line.
    Yes, the new code drops the quarters. Thanks! Perhaps include this info in the documentation.

    Originally posted by Attaullah Shah View Post
    I had asked for the data set, however, you have posted the do file.
    As mentioned in a previous message

    Originally posted by Pratap Pundir View Post
    The data set is from World Bank, being pulled directly.
    Specifically, line 21
    Code:
    wbopendata, indicator(EN.ATM.CO2E.KT;SP.POP.TOTL;NY.GDP.PCAP.KN;AG.LND.FRST.ZS;AG.LND.AGRI.ZS) long clear
    gets data directly from World Bank. There is no initial data file to import aside from this...

    Leave a comment:


  • Attaullah Shah
    replied
    Rodrigo Badilla As promised, all future additions will be made to asdox, please keep visiting this page for updates. https://fintechprofessor.com/stata-programs/asdocx/

    Leave a comment:


  • Attaullah Shah
    replied
    Pratap Pundir My mistake, not asdoc's in post #15. The code drop(i.qtr) should be included either in each line or in the last line. Following is the correct code.
    webuse lutkepohl2
    Code:
    tsset  
    global wordfile Regressions  
    asdoc reg dln_inv dln_inc L(0/2).dln_consump i.qtr, add(Year FE, Yes) save($wordfile) nest cnames(CS 2Lag) replace  
    asdoc reg dln_inv dln_inc L(0/2).dln_consump, add(Year FE, No)  save($wordfile) nest cnames(CS 2Lag) drop(i.qtr)
    Second, I had asked for the data set, however, you have posted the do file.

    Leave a comment:


  • Rodrigo Badilla
    replied
    Dear Dr,

    And for Anova?...
    Regards

    Leave a comment:


  • Pratap Pundir
    replied
    P.S. The code posted by you
    Code:
    webuse lutkepohl2  
    tsset  
    global wordfile Regressions  
    asdoc reg dln_inv dln_inc L(0/2).dln_consump i.qtr, add(Year FE, Yes) drop(i.qtr) save($wordfile) nest cnames(CS 2Lag) replace  
    asdoc reg dln_inv dln_inc L(0/2).dln_consump, add(Year FE, No)  save($wordfile) nest cnames(CS 2Lag)
    does not return an error, but doesn't work as expected either. For one, `drop(i.qtr)` doesn't work - the exported Word file lists quarters 3 to 91, regardless.
    Last edited by Pratap Pundir; 19 Mar 2019, 05:15.

    Leave a comment:


  • Pratap Pundir
    replied
    Please find attached my code. The data set is from World Bank, being pulled directly.

    Code:
    which asdoc
    returns
    Code:
    Version 2.3.3.3: Changes made March 6, 2019
    Attached Files

    Leave a comment:


  • Attaullah Shah
    replied
    Pratap Pundir Please confirm that you have the latest version. It should be Version 2.3.3.3
    Code:
    which asdoc
    will show the version.
    If the version is up to date, then please either post a sample data set that produces the error or send it to me at attaullah.shah@imsciences.edu.pk
    I checked your example on the following dataset and it works fine.

    Code:
    webuse lutkepohl2
    tsset
    global wordfile Regressions
    asdoc reg dln_inv dln_inc L(0/2).dln_consump i.qtr, add(Year FE, Yes) drop(i.qtr) save($wordfile) nest cnames(CS 2Lag) replace
    asdoc reg dln_inv dln_inc L(0/2).dln_consump, add(Year FE, No)  save($wordfile) nest cnames(CS 2Lag)
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	38.0 KB
ID:	1488868

    Leave a comment:


  • Pratap Pundir
    replied
    I suspect this has to do more with the
    Code:
    add(Year FE, Yes)
    in the nesting situation, than with anything else.
    So, I guess my question should be - if I am adding row info, how do I nest the regression tables?

    In your example, you have used the exact same options
    Code:
    add(Year dummies, no)
    in consecutive nesting regressions. But it's clearly not working in my case.

    Leave a comment:


  • Pratap Pundir
    replied
    Code:
    asdoc reg d_ln_co2 l(0/2).d_ln_gdp i.year, vce(cluster country) add(Year FE, Yes) drop(i.year) save($wordfile) nest cnames(FD 2Lag)
    returns
    func_nested_reg(): 3301 subscript invalid
    <istmt>: - function returned error
    Code:
    reg d_ln_co2 l(0/2).d_ln_gdp i.year, vce(cluster country)
    runs fine.
    Code:
    asdoc reg d_ln_co2 d_ln_gdp i.year, vce(cluster country) add(Year FE, Yes) drop(i.year) save($wordfile) nest cnames(FD)
    also runs fine
    Last edited by Pratap Pundir; 18 Mar 2019, 13:10.

    Leave a comment:


  • Attaullah Shah
    replied
    Pratap Pundir These options will be included in the premium version, called asdocx. For updates, please visit this page
    https://fintechprofessor.com/stata-programs/asdocx/

    Leave a comment:

Working...
X