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
Help with instrumental variable regressionHello everybody, I need your help please. I have a dummy variable which is potentially endogenous. …
Interpretation of interaction effect with -margins-I'm currently researching the effect of gender on the performance of microfinance institutions (MFI)…
nesting cond()hi All, I was reading the stata journal version: The Stata Journal (2005) 5, Number 3, pp. 413–420 …
Parsing a user-given command to add an "if touse"I've recently had occasion to write a program using the colon operator, where as is typical, an esti…
Dropping observations based on multiple conditionsHi, My data consists of multiple rows for each person. I want to keep the rows if the followup=0 or…
Subscribe to:
Post Comments (Atom)
0 Response to Tab2xl issues
Post a Comment