Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: tabdisp & collapse


From   James Cui <james.cui@med.monash.edu.au>
To   statalist@hsphsun2.harvard.edu
Subject   st: tabdisp & collapse
Date   Mon, 18 Apr 2005 16:38:15 +1000

Dear all:

Is there any easy way to transfer the following data

0 0 15
0 1 11
1 0 20
1 1 24

into

0 0 15
0 1 11
1 0 20
1 1 24
0 . 26
1 . 44
. . 70
. 0 35
. 1 35

Apparently, the added records with "." are the marginal totals and grand total. This question is related to the example given in the Programming Manual about tabdisp & collapse.

Thanks.

James
Email: James.Cui@med.monash.edu.au


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index