Bookmark and Share

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: Going from frequencies to individual data


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Going from frequencies to individual data
Date   Tue, 29 Jan 2013 13:30:01 +0000

You should type

 . help expand

On Tue, Jan 29, 2013 at 1:19 PM, K Jensen <[email protected]> wrote:

> I have frequency data that I would like to transform to individual
> data. It is fruit and vegetable intake categorised by smoking. So I
> would like to go from:
>
> frandveg        smoke=0 smoke=1 total
> 0       0       2       2
> 0.5     1       0       1
> 1       2       3       5 etc
>
> To
> frandveg        smoke
> 0       1
> 0       1
> 0.5     0
> 1       0
> 1       0
> 1       1
> 1       1
> 1       1
>
> How would I go about this?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index