Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Collecting results from several Tables into one word file

    Hi There,



    I am running following commands, and I want to collect the results of all the tables into a single word file.

    Right now I am using "collect export "results2", as(docx) replace " command but it collects the results of only the last command and not from all the commands.

    I want to collect the output/ results/tables of all these commands into a single MS word file.


    table () ( response2 ) (), statistic(min age) statistic(mean age) statistic(median age) statistic(max age)
    table () ( response2 ) (), statistic(min tlc) statistic(mean tlc) statistic(median tlc) statistic(max tlc)
    table () ( response2 ) (), statistic(min plt) statistic(mean plt) statistic(median plt) statistic(max plt)
    table () ( response2 ) (), statistic(min bilirubin) statistic(mean bilirubin) statistic(median bilirubin) statistic(max bilirubin)
    table () ( response2 ) (), statistic(min inr) statistic(mean inr) statistic(median inr) statistic(max inr)
    table () ( response2 ) (), statistic(min hb) statistic(mean hb) statistic(median hb) statistic(max hb)

    table () ( response2 ) (), statistic(min albumin) statistic(mean albumin) statistic(median albumin) statistic(max albumin)
    table () ( response2 ) (), statistic(min ast) statistic(mean ast) statistic(median ast) statistic(max ast)
    table () ( response2 ) (), statistic(min alt) statistic(mean alt) statistic(median alt) statistic(max alt)
    table () ( response2 ) (), statistic(min urea) statistic(mean urea) statistic(median urea) statistic(max urea)
    table () ( response2 ) (), statistic(min creatitine) statistic(mean creatitine) statistic(median creatitine) statistic(max creatitine)

    table () ( response2 ) (), statistic(min sodium) statistic(mean sodium) statistic(median sodium) statistic(max sodium)
    table () ( response2 ) (), statistic(min potas) statistic(mean potas) statistic(median potas) statistic(max potas)
    table () ( response2 ) (), statistic(min meldna) statistic(mean meldna) statistic(median meldna) statistic(max meldna)
    table () ( response2 ) (), statistic(min meldcyst) statistic(mean meldcyst) statistic(median meldcyst) statistic(max meldcyst)
    table () ( response2 ) (), statistic(min cystatin) statistic(mean cystatin) statistic(median cystatin) statistic(max cystatin)


    table () ( response2 ) (), statistic(min mapd1) statistic(mean mapd1) statistic(median mapd1) statistic(max mapd1)
    table () ( response2 ) (), statistic(min mapd3) statistic(mean mapd3) statistic(median mapd3) statistic(max mapd3)
    table () ( response2 ) (), statistic(min map) statistic(mean map) statistic(median map) statistic(max map)







  • #2
    Combine everything into one table:

    Code:
    global myvars age tlc plt bilirubin inr hb albumin ast alt urea creatitine sodium potas meldna meldcyst cystatin mapd1 mapd3 map
    
    table (var) ( response2 ), statistic(min $myvars) statistic(mean $myvars) statistic(median $myvars) statistic(max $myvars)

    Comment

    Working...
    X