Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: want to output a table as a dataset from STATA
From
Woolton Lee <[email protected]>
To
[email protected]
Subject
Re: st: RE: want to output a table as a dataset from STATA
Date
Thu, 1 Apr 2010 14:55:16 -0400
Thank you. This looks like exactly what I was hoping to find.
On Thu, Apr 1, 2010 at 2:24 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
> You may want to employ a -postfile- in your loop, as in Philippe`s
> http://www.stata-journal.com/article.html?article=pr0036 or Michael`s
> http://www.michaelnormanmitchell.com/stow/posting-results-regression.html
>
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Woolton Lee
> Sent: Donnerstag, 1. April 2010 20:17
> To: statalist
> Subject: st: want to output a table as a dataset from STATA
>
> 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/
>
> *
> * 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/
>
*
* 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/