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: svmat?


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: svmat?
Date   Wed, 9 Jan 2013 10:45:41 +0000

Much depends on what you want to -merge- with, but consider generating
a dataset through -contract- or -collapse-.

Nick

On Wed, Jan 9, 2013 at 10:36 AM, Patricia Biedermann
<[email protected]> wrote:

> I want to store data from a matrix into new variables.
> I have tried svmat but it's not what I'm looking for! Or maybe I've
> used it not correctly.
>
> e.g. I tabulate variable " location" with the options "rural" "urban"
> "semiurban" and their frequencies
>
> location    frequ
> rural          23
> urban        45
> semiurban   55
>
> then I want to generate new variables that look like that in the
> databrowser or a table I can copy/paste into another file.
>
> rural            urban              semiurban
> 23                 45                 55
>
>
> In the end I need to merge the data from several countries and have
> all the data clear together on one table.
>
> e.g.
>
>                         rural                 urban             semiurban
>
> country1            23                      45                    55
>
>
> Is this somehow possible?
*
*   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