In my experience the option 'append' sometimes works and sometimes doesn't - could anyone explain the below to me?
sysuse auto
encode make, gen(make2)
* example 1: append works
table var foreign, stat(fvpercent rep78 ) sformat("%s%%" fvpercent) nformat(%6.0f) nototals style(table-1) name(t1)
table var foreign, stat(fvpercent make2) stat(mean mpg) sformat("%s%%" fvpercent) nformat(%6.0f) nototals style(table-1) name(t1) append
* example 2: append doesn't work
table var foreign, stat(fvpercent rep78 ) sformat("%s%%" fvpercent) nformat(%6.0f) nototals style(table-1) name(t2)
table var foreign, stat(mean mpg) nformat(%6.0f) nototals style(table-1) name(t2) append
Thanks in advance!
Related Posts with customizable tables: issue with appending tables
Mediation Panel dataDear all, I am currently conducting a fixed effects panel regression in Stata with the following va…
Counting and storing the value in a new variableI am trying to calculate the number of earners by household and then storing this number in a new va…
Need assistance with histogram or bar graphI am having difficulty getting a histogram that was fairly easy to do in python with pyplot. I have …
Importing several sas7bdat files to Stata and saving them in seperate folderHello everyone, I have received ~300 .sas7bdat files that I need to import to Stata and save them a…
Maximum value per year per ticket?Hi Stata users, Do you know how it is possible to sort on maximum value per year and per ticket? Fo…
Subscribe to:
Post Comments (Atom)
0 Response to customizable tables: issue with appending tables
Post a Comment