Forum Replies Created
-
AuthorPosts
-
in reply to: asdocx change table title font size #15728
Hello Prof.
You can modify various properties of the table title. These are mentioned with examples in theasdocx_defaults.ado
To change the font size for title, you can usefs_title(#)
for current session or change it in theasdocx_defaults.ado
which will set it permanently, unless you update asdocx.Example:
asdocx sum, fs_title(20) replace
in reply to: asdoc with anova command in Stata | Export to Word #15725Thanks for your email. I have included support for anova in asdocx. You can explore asdocx here https://asdocx.com
* Example: Export ANOVA results to word webuse systolic, clear asdocx anova systolic drug#disease, replace Table: ANOVA Results ----+------------------------------------------------------------------------------ 1 | Partial_SS df MS F p-value ----+------------------------------------------------------------------------------ 2 |Model 4259.339 11 387.213 3.506 0.001 3 |drug#disease 4259.339 11 387.213 3.506 0.001 4 |Residual 5080.817 46 110.453 . . ----------------------------------------------------------------------------------
in reply to: error 3301 when running a loop #15721Can you please send me the data that creates the above error. my email address is attaullah.shah@imsciences.edu.pk
in reply to: “asdocx, text ( )” command errors #15679As an update to this post, I have added several option to text() option, you can read this blog entry https://asdocx.com/asdocx-adding-text-and-paragraphs-to-word-documents/
I have fixed the issue. please update asdocx
asdocx_update
in reply to: Error r3001 in getting the output #15677I think the fileconfirm() function already exists in some user-defined mlib library. I have changed the file name so that there is no conflict of funciton names. Please update and try it again.
asdocx_update
Please update, this issue has been fixed.
asdocx_update
in reply to: Error r3001 in getting the output #15673Thank you Sumeet for your feedback. Can you please send me the output from the following codes to my email attaullah.shah@imsciences.edu.pk
sysuse auto, clear set trace on asdocx sum, replace set trace off
Dear Ho-Chuan Huang
The level of significance can be indicated using*
,**
, and***
at 10%, 5%, and 1% level in thepwcorr
command. See the following example:sysuse auto, clear asdocx pwcorr price headroom mpg displacement, star(all) save(cor.doc) replace ----+---------------------------------------------------------------------------------------- 1 |Variables (1) (2) (3) (4) ----+---------------------------------------------------------------------------------------- 2 |(1) price 1.000 3 |(2) headroom 0.115 1.000 4 |(3) mpg -0.469*** -0.414*** 1.000 5 |(4) displacement 0.495*** 0.474*** -0.706*** 1.000 --------------------------------------------------------------------------------------------- Notes: *** p<0.01, ** p<0.05, * p<0.1
in reply to: How to sort by total in asdocx tabulate command. #15642Ha Thai Son
tabsort
is not a Stata official command, therefore, asdocx does not know about it. This program was written by Nick Cox and one has to install it. If you want to use asdocx withtabsort
, here is the modified version oftabsort
that uses asdocx inside its main body. If you run this modified tabsort, it will generate the asdocx output. To run it, you need to first copy and paste it in the C:/ado/plus/t folder or other Stata folders where Stata can find it. [Download the modified tabsort here]* Load auto data sysuse auto, clear tabsort rep78 ------------------------------------------------------- 1 |Repair Record 1978 Freq. Percent Cum. ----+-------------------------------------------------- 2 | 3 30 43.48 43.48 3 | 4 18 26.09 69.57 4 | 5 11 15.94 85.51 5 | 2 8 11.59 97.10 6 | 1 2 2.90 100.00 7 | Total 69 100.00 ------------------------------------------------------- * With two variables tabsort foreign rep78 --------------------------------------------------------------------- 1 | Car type6 Repair Record 1978 ----+---------------------------------------------------------------- 2 | 1 3 4 5 2 1 Total 3 | Domestic 27 9 2 8 2 48 4 | Foreign 3 9 9 0 0 21 5 | Total 30 18 11 8 2 69 ---------------------------------------------------------------------
Since this is a very basic version of asdocx implementation, please do not expect much from it in terms of other asdocx options.
in reply to: How to sort by total in asdocx tabulate command. #15640Hello Ha Thai Son
asdocx follows the native Stata commands. I think option sort is not allowed in two-way tabulationssysuse auto, clear tab rep78 foreign, sort option sort not allowed r(198);
You can use option
btp
. See the following examples:sysuse auto * Without btp option, the brackets are used as default for ci asdocx reg price mpg rep78 trunk, template(reg1) ---+----------------------------------------------------------------------------- 1 |Variable OR [95% CI] P-value ----+----------------------------------------------------------------------------- 2 |Mileage (mpg) -252.266 [-393.676, -110.856] 0.001 3 |Repair Record 1978 650.053 [-41.308, 1341.414] 0.065 4 |Trunk space (.. ft.) 42.466 [-134.604, 219.536] 0.634 5 |Constant 8711.347 [3927.018, 13495.676] 0.001 6 |Observations 69 ---------------------------------------------------------------------------------- * Use btp option to use parentheses instead of bracket asdocx reg price mpg rep78 trunk, template(reg1) btp ----+----------------------------------------------------------------------------- 1 |Variable OR [95% CI] P-value ----+----------------------------------------------------------------------------- 2 |Mileage (mpg) -252.266 (-393.676, -110.856) 0.001 3 |Repair Record 1978 650.053 (-41.308, 1341.414) 0.065 4 |Trunk space (.. ft.) 42.466 (-134.604, 219.536) 0.634 5 |Constant 8711.347 (3927.018, 13495.676) 0.001 6 |Observations 69 ----------------------------------------------------------------------------------
I have modified the reg1 template. It now accepts the dec() option. See the following example:
Table: Regression Results - price ----+---------------------------------------------------------------------- 1 |Variable OR [95% CI] P-value ----+---------------------------------------------------------------------- 2 |Mileage (mpg) -289.346 [-424.410, -154.283] 0.000 3 |Repair Record 1978 670.897 [132.141, 1209.653] 0.015 4 |Headroom (in.) -300.029 [-877.106, 277.048] 0.303 5 |Constant 10921.330 [6768.917, 15073.743] 0.000 6 |Observations 69 ---------------------------------------------------------------------------
in reply to: asdocx table1 template: report column percentages #15627Hello Prof
I have now added option cell, row, and col to control the choice of percentages based on total, column and row totals.
asdocx_update
Example 1: Report cell percentages
The following two commands are identical as option cell is the default option for reporting cell percenatages.asdocx tab vision denied , template(table1) replace *OR asdocx tab vision denied , cell template(table1) replace
Example 2: Report column percentages
asdocx tab vision denied , col template(table1) replace
Example 3: Report row percentages
asdocx tab vision denied , row template(table1) replace
in reply to: How to sort by total in asdocx tabulate command. #15620You are right, I need to work on the tabulate two-ways command to accept the
sort
option. That will take a while. -
AuthorPosts