Forum Replies Created

Viewing 15 posts - 91 through 105 (of 105 total)
  • Author
    Posts
  • Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Professor Melse
    Thanks for the detailed feedback.
    String variables
    I have modified asdocx in light of your suggestion and now it works with string variables as well.

    File type
    I have discussed the permanent and session settings on this https://asdocx.com/asdocx-documentation/session-and-permanent-options-asdocx/ page. The idea is that once a session variable is set, it remains the same for user’s convenience. So, if one changes font(), fs(), or save() options, they remain the same unless changed again. This saves the user’s time and efforts in not having to type them over and again.

    Speed
    I have improved the speed by using an alternative algorithm for finding the required statistics.

    Statistics
    This will take some time as I have to work more on adding these statistics.

    You can update and test the new version

    asdocx_update
    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Dr Bijaya Kumar Padhi
    Seems you have tried to run the code from the command window. Stata does not allow the line continuation from the command window using the three slashes ///

    Either you have to run the code from a do file or remove the three slashes and run it from command window. For example, try this code

    use http://fintechprofessor.com/asdocxAddins/table1.dta, clear
    
    asdocx tab immigrant bone_arthritis bone_backspin bone_backother bone_neck bone_fibro bone_lupus, template(table1) table_layout(autofit) replace
    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Isabel
    Since groups command is not an official Stata command, asdocx is not aware of it. Therefore, you are receiving the mentioned error. On your request, I have worked on it and have added it to asdocx. You should update asdocx with the following code

    asdocx_update

    Once installed, you can use asdocx with the groups command in a usual manner. Following is an example from the help file of the groups command.

    webuse nlswork
    asdocx groups collgrad not_smsa c_city south, order(high)
      
    
    
    ----+---------------------------------------------------------------------------------
      1 |college gradu               SMSA    central city     south   frequency     percent 
    ----+---------------------------------------------------------------------------------
      2 |0                              0           0           0        5742      20.129 
      3 |0                              0           1           0        4941      17.321 
      4 |0                              1           0           1        3982      13.959 
      5 |0                              0           1           1        3455      12.112 
      6 |0                              1           0           0        3086      10.818 
      7 |0                              0           0           1        2527       8.859 
      8 |1                              0           0           0        1412       4.950 
      9 |1                              0           1           0        1096       3.842 
     10 |1                              0           1           1         698       2.447 
     11 |1                              0           0           1         598       2.096 
     12 |1                              1           0           0         566       1.984 
     13 |1                              1           0           1         423       1.483 
    --------------------------------------------------------------------------------------
    
    
    
    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    The by() or the bysort prefix follow the logical order when the by() variable is numeric and alphabetical order when it is string. You can read this FAQs on Stata official site to modify the ordering of the categories of the by() variable

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    It will help me in replicating the problem if you can share a sample of your data using the dataex program or eamil the data directly to me. To install dataex program

    ssc install dataex
    
    * Then create a sample
    dataex
    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Welcome to the Forum Selini

    Yes you create summary statistics using a grouping variable. See the following example. I use industry as a grouping variable and find descriptive statistics for the variable wage.

    sysuse nlsw88, clear
    bys industry : asdocx sum wage, replace

    Summary statistics by grouping variable asdocx

    I think you should post the second question as a new topic so that it is answered there.

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Dimas
    The font size issue has been solved. Actually, there was a line of cod that I forgot to change. To update, type
    asdocx_update

    I would like your feedback in future as well.

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Ozer Erdem
    On your request, I have added option dect() to control the decimal points of standard errors, t-values, or p-value in the nested regressions. I have also fixed the issue with the nofvlabel option. Here is one example where I used the default three decimal places for regression coefficients and two decimal points for standard errors.

    sysuse auto, clear
    asdocx reg price mpg i.foreign##c.rep78, replace nest 
    asdocx reg price mpg rep78 headroom, nest
    asdocx reg price mpg rep78 headroom weight , nest 
    asdocx reg price mpg rep78 weight , nest dect(2) nofvlabel

    asdocx nested decimal points for t-values p-values se

    You may like to note that asdocx considers all formatting options of the last command used. You may add these options in each line of code, that does not do any harm though.

    Dr. Attaullah Shah
    Keymaster
    Post count: 106
    in reply to: asdocx and graphs #14837

    Hello Jörg
    asdocx can now export graphs. Here is quick start https://asdocx.com/options-for-docx-word-files-asdocx/export-graphs-and-charts-from-stata-to-word-with-asdocx/. you need to update it before you can use. To update,
    asdocx_update

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    I have added a custom template for a similar regression that you have specified. I call this template as reg1. First update asdocx using the following code of line.

    asdocx_update 

    After updating asdocx, you can use it as shown below.

     asdocx logistic bone_arthritis i.immigrant i.male i.ethrace i.educ i.faminc i.agecategory ///
       i.uninsured, replace label template(reg1)

    Please note the option template(reg1) that invokes the reg1 template. This template creates a regression table that looks like the one given below.

    asdocx regression table with confidence interval

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Ben
    I have fixed the issue of cnames(). You can update the asdocx by

    asdocx_update

    Following is an example and the output generated by asdocx

      sysuse auto, clear
      asdocx reg price mpg rep78, nest replace cnames(Base) replace label
    
    * Add variable headroom and then nest with existing table
      asdocx reg price mpg rep78 headroom, nest label cnames(Headroom)
    
    * Add variable weight and then nest with existing table
      asdocx reg price mpg rep78 headroom weight, nest label cnames(Weight)
    

    asdocx nested regression

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Prof Eric

    I added the font option few days ago , do you have the most recent version of asdocx. To be sure, you can update and check.

    asdocx_update

    The compatibility issue is with the Stata docx() suit of commands. All documents created from Stata have this issue, whether you use Mata _dodx() Classes or putdocx command.

    I shall work on the label issue and let you know once ready.

    Thanks for your feedback.

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Christian

    Thanks for reporting this. There are two issues, which I have corrected.

    The program ppmlhdfe is not an official Stata program, therefore, asdocx was unaware of that. I have added it to the supported packages inside asdocx
    The ppmlhdfe uses a matastrict on condition, that would cause the asdocx package to throw errors. I have fixed that too.
    You can now update asdocx and restart Stata

    To update,

    asdocx_update
    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Gregory
    Thanks for asking this question. I was planning to write something like this to highlight how asdocx differs from asdoc. asdocx is a huge project and it took several years. I am still working on it and hardly find time to write the help file. So I just renamed the asdoc help file because the basic syntax of both the program match. For a starter, you may read this online help, which is off course still incomplete.

    There are several major differences bettween asdoc and asdocx. The Following table highlights few of them.

    Features asdoc asdocx
    RTF output
    Native docx output
    Excel Output
    LaTeX output
    Flexmat Support
    Template Support
    Graphs and Chart
    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Veline
    I have fixed it. Please update it.

    asdocx_update

    Thanks for your feedback.

Viewing 15 posts - 91 through 105 (of 105 total)