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
Problem with xi - syntaxI just realized the solution. Sorry. When you are making only dummies with xi and not running a com…
where does -simulate- save the returned results each time?Dear Statalist, I have questions regarding the way that the command -simulation- runs the pre-defin…
system error messageI have STATA/MP 14.0. I have around 7500 firm year observations. I was running my regressions normal…
meologit var(_cons) too small, problem?I ran an meologit for my cluster RCT data; the clustering var(_cons) comes out to be 9.90e-32, S.E 5…
Adjusting bar sizeHi, I hope everyone here is safe working from home. I am working with bar charts from my real-time …
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Exporting a Table 1 Into a PDF Directly From Stata Commands
Post a Comment