Hello everyone,
I've just come across tab2xl and have been trying to include it in a loop to get a two-way tab for my variables as follows:
foreach var of global catmyco {
tab2xl `var' totalmyco using test1, row (1) col (1) missing sheet ("testsheet1")
}
However, it's only giving me an excel sheet for the last variable in the global catmyco. The append option is not allowed.
Does anyone know of a way to get everything in a single sheet?
p.s: Tabout works, but it just seems like tab2xl would be an easier option.
foreach var of global catmyco {
tabout `var' totalmyco using bivar.xls, c(freq col) mi append
}
Thank you!
Related Posts with Tab2xl issues
How to test Interaction in Logistic Regression with categorical independent variables (1 is dummy, other one has 4 categories)?I am trying to test for interaction effect in my logistic model where outcome is dummy and the two i…
Calculating Rolling Statistics for Panel Data With a Varying Window of ObservationHello Statalist, I would like to create some code which can calculate various statistics (moving a…
PVAR vs. Arellano-Bond estimationHello all, I understand that both PVAR and Arellano-Bond estimation are dynamic panel methods, and …
ivreg2 panel data analysis with dummy control variablesDear STATA Community, i am estimating following model using panel data with dummy control variables …
PARAMED code for a continuous treatment and a continuous mediator, how to set a0() a1() and m()Hi, I am using the PARAMED package for my mediation analysis for a count DV. The code is working, bu…
Subscribe to:
Post Comments (Atom)
0 Response to Tab2xl issues
Post a Comment