Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Daniel Paschek
    Participant
    Post count: 6

    Awesome, works perfectly – thank you so much!

    Daniel Paschek
    Participant
    Post count: 6

    Dear Dr. Shah,

    after updating asdocx I now get the following error message: “conformability error”.
    I am running a unequal unpaired t-test with the the stat() option:

    asdocx ttest CompanyAge if InvRec == 1 & (VCType == "GVC" | VCType == "IVC"), by(VCType) 
    > unpaired unequal replace dec(3) stat(obs mean se sd dif t p)  title(T-Test - GVCs vs. IVCs )  lab
    > el abb(.) save(VCInv_GVCIVC_ttest_All)  
    

    The output is the following:

    
    Two-sample t test with equal variances
    ------------------------------------------------------------------------------
    Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
    ---------+--------------------------------------------------------------------
         GVC |   1,072    5.757696    .2418861    7.919692    5.283071     6.23232
         IVC |   7,379    6.221168    .0935548    8.036464    6.037774    6.404562
    ---------+--------------------------------------------------------------------
    combined |   8,451    6.162377     .087271    8.022764    5.991305     6.33345
    ---------+--------------------------------------------------------------------
        diff |           -.4634723    .2621968               -.9774422    .0504976
    ------------------------------------------------------------------------------
        diff = mean(GVC) - mean(IVC)                                  t =  -1.7677
    Ho: diff = 0                                     degrees of freedom =     8449
    
        Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
     Pr(T < t) = 0.0386         Pr(|T| > |t|) = 0.0772          Pr(T > t) = 0.9614
    conformability error
    r(503);
    
    end of do-file
    
    r(503);
    
    

    Would be great if you could assist

    Daniel Paschek
    Participant
    Post count: 6

    In a related issue with t-tests, I get the following error message:

               asdocxtable():  3301  subscript invalid
                     <istmt>:     -  function returned error

    My code is:

    asdocx ttest OtherVC_EquityInv if VCType == "OtherVC", ///
        by(EPU_AbAvgYear) unpaired unequal stat(mean sd obs) label abb(.)  save(test)

    The error only occurs when I include “sd” in the stat option. It also occurs when I use asdoc.
    Is there a way to fix this?

    Daniel Paschek
    Participant
    Post count: 6

    For simplicity, I used the auto dataset

    The following code gives me the same error

    clear
    sysuse auto
    (1978 Automobile Data)
    asdocx tab make, save(Example.docx) replace
    

    Then I get this message:
    option Data not allowed
    r(198);

    Hope this makes it clear. In an related issue, how would I format the number like posted early (e.g. 1,000 vs 1000)?

Viewing 4 posts - 1 through 4 (of 4 total)