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

st: tabdisp & collapse


From   James Cui <[email protected]>
To   [email protected]
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: [email protected]


*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index