Hello all and thanks in advance for your help.
I am just despairing of learning the new dtable command: I am currently trying to transfer dtables from descriptive tab1/tab2 commands to a word document via a putdocx command.
Examplecode of a simple oneway tabulate dtable:
The output contains all the important information, but the format of the output Word table troubles me.
In Word the absolute case numbers per category are in the same table cell as the percentages per category (--> in the same column).
So: Cell D2: [ 1.950 (0,50%) ]
However, for a meaningful use I need the two values in separate columns.
So: Cell D2: [ 1.950 ] Cell D3: [(0,50%)]
I can't find any code for this presumably simple modification, and all the examples in the webinar and on the blog don't separate the two columns either.
So: Is there a way to use the dtable command (or the collect/table command if applicable) to separate the columns? Or is it necessary to resort to ados? (Or even to the creation of matrices?)
I apologize in advance if this is too trivial a question, unfortunately as a new user I am a bit desperate as I have to create a large number of tables.
Thank you and best regards
Max
I am just despairing of learning the new dtable command: I am currently trying to transfer dtables from descriptive tab1/tab2 commands to a word document via a putdocx command.
Examplecode of a simple oneway tabulate dtable:
Code:
putdocx paragraph, style(Heading2) putdocx text ("Citydistrict") dtable i.Citydistrict collect title Table `Tblnb': Citydistrict (unweighted) collect notes "Unweighted." putdocx collect local `Tblnb++'
In Word the absolute case numbers per category are in the same table cell as the percentages per category (--> in the same column).
So: Cell D2: [ 1.950 (0,50%) ]
However, for a meaningful use I need the two values in separate columns.
So: Cell D2: [ 1.950 ] Cell D3: [(0,50%)]
I can't find any code for this presumably simple modification, and all the examples in the webinar and on the blog don't separate the two columns either.
So: Is there a way to use the dtable command (or the collect/table command if applicable) to separate the columns? Or is it necessary to resort to ados? (Or even to the creation of matrices?)
I apologize in advance if this is too trivial a question, unfortunately as a new user I am a bit desperate as I have to create a large number of tables.
Thank you and best regards
Max
Comment