Forum Replies Created
-
AuthorPosts
-
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 changesfont()
,fs()
, orsave()
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
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
in reply to: Using asdocx with the groups command in Stata #15470Hello Isabel
Sincegroups
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 codeasdocx_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 --------------------------------------------------------------------------------------
The
by()
or thebysort
prefix follow the logical order when theby()
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 theby()
variableIt 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 programssc install dataex * Then create a sample dataex
in reply to: nest in summary statistics table #15450Welcome 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 variablewage
.sysuse nlsw88, clear bys industry : asdocx sum wage, replace
I think you should post the second question as a new topic so that it is answered there.
in reply to: Font size: current session and permanent sessions. #15413Hello Dimas
The font size issue has been solved. Actually, there was a line of cod that I forgot to change. To update, type
asdocx_updateI would like your feedback in future as well.
Hello Ozer Erdem
On your request, I have added optiondect()
to control the decimal points of standard errors, t-values, or p-value in the nested regressions. I have also fixed the issue with thenofvlabel
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
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.
in reply to: asdocx and graphs #14837Hello 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
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.
Hello Ben
I have fixed the issue of cnames(). You can update the asdocx byasdocx_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)
in reply to: asdocx Font, label options in Stata #14612Hello 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 orputdocx
command.I shall work on the label issue and let you know once ready.
Thanks for your feedback.
in reply to: asdocx to export regression results of ppmlhdfe #14611Hello 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
Theppmlhdfe
uses amatastrict
on condition, that would cause the asdocx package to throw errors. I have fixed that too.
You can now update asdocx and restart StataTo update,
asdocx_update
in reply to: Difference between asdoc and asdocx? #14601Hello 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 - This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
- This reply was modified 3 years, 5 months ago by Dr. Attaullah Shah.
in reply to: asdocx leading zero in Regressions | Stata #14595Hello Veline
I have fixed it. Please update it.asdocx_update
Thanks for your feedback.
-
AuthorPosts