Hi all, I am currently doing research, so I will use a sample example from this link to ask my question: https://blog.uvm.edu/tbplante/2019/0...ith-table1_mc/
I am using Stata/SE 17.0.
The syntax is as follows:
table1_mc, by(myexposure) ///
vars( ///
age contn %4.0f \ ///
sex0m1f bin %4.0f \ ///
race0w1b bin %4.0f \ ///
region123 cat %4.0f \ ///
educ1234 cat %4.0f \ ///
income1234 cat %4.0f \ ///
sbp contn %4.0f \ ///
dbp contn %4.0f \ ///
smoke7_ideal bin %4.0f \ ///
pa7_ideal bin %4.0f \ ///
diet7_ideal bin %4.0f \ ///
chol7_ideal bin %4.0f \ ///
fpg7_ideal bin %4.0f \ ///
bmi7_ideal bin %4.0f \ ///
bp7_ideal bin %4.0f \ ///
) ///
nospace percent onecol missing total(before) ///
saving("table 1.xlsx", replace)
Question: I have no problem using this syntax and saving this into an excel sheet. However, I am having trouble taking that Table 1 output from the table1_mc command, and being able to directly export the output into my pdf report (putpdf series of commands). Does anyone have any advice on how to fix this or how to make it work?
Thank you in advance!
Related Posts with Trouble Exporting a Table 1 Into a PDF Directly From Stata Commands
titles of factor variables in output of a regressionDear all, I am running an OLS regression using factor variable as a regressor: Code: reg punt_glob…
interaction termsHi, Im trying to run a regression using interaction terms including a dummy, could some one help me…
How to interpret the coefficient of the variable that takes first difference?Panel data model. x takes first difference to become stationary. Then how to interpret the coefficie…
Do file beginner question I am trying to improve my understanding of do file scripting. For disclosure, I program competently…
Reverse each axis after -grqreg-Dear All, Applying the -qreg- command, I attempt to reverse the X- and Y-axis in the graphs compute…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Exporting a Table 1 Into a PDF Directly From Stata Commands
Post a Comment