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
question about panel data managementHi, I have a panel dataset. In the dataset, a variable ‘father’s school’ was surveyed once at firs…
Winsorization in Cross Sectional Data Setup* Example generated by -dataex-. To install: ssc install dataex clear input int stock_id str52 stock…
25 Portfolio Returns series by Dependent Double Sort - ASTILE* Example generated by -dataex-. To install: ssc install dataex clear input int stock_id str52 stock…
inrange including negative valuesHi all, I am attempting to create a dummy variable within stata for modeately negative real interst…
Lagged dependent variable, fixed effects, and IVHello everyone, I have concerns for several days about the validity of the results I obtain with my…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Exporting a Table 1 Into a PDF Directly From Stata Commands
Post a Comment