Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Woolton Lee <finished07@gmail.com> |

To |
statalist <statalist@hsphsun2.harvard.edu> |

Subject |
st: want to output a table as a dataset from STATA |

Date |
Thu, 1 Apr 2010 14:16:57 -0400 |

I need to create a large table of cross tabulations for a set of 31 variables (lets say the rows of the table) and a set of 6 variables (lets say the columns of the table). All of these variables are binary indicators. Each cell of the table is to contain a count of the number of observations in the dataset where a given pair of the variables both = 1. I've written a simple loop that counts for each pair of these variables the number of observations where both are == 1. What I would like to do is for STATA to output a dataset of dimension 31 by 6 so I can easily cut and paste this into a word document. I am not sure how one would do this (maybe its actually very simple)...does anyone have any ideas? Thank you for your help, Woolton * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: RE: want to output a table as a dataset from STATA***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**st: RE: To expand the value of a constant variable across the panel** - Next by Date:
**st: RE: RE: RE: Recent postings for help on course work and theses** - Previous by thread:
**st: To expand the value of a constant variable across the panel** - Next by thread:
**st: RE: want to output a table as a dataset from STATA** - Index(es):