Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Construct a Panel dataset


From   Karen Zhang <mathkaren@me.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Construct a Panel dataset
Date   Tue, 24 Jul 2012 23:21:38 +0800

Hi,

This is just my opinion. I think what you did with "ID" is essentially the same as -encode- country, which is not what conventionally refereed "ID". I assume you should create ID number for individuals within each country, say,

UK   1  Albania
UK   2  XXXX
UK   3  YYYY
.
.
.
US     1  Albania
US     2  XXXX
.
.
.

However, given your panel data will cover 15 years time span, will you have a time variable indicating the years?

Bests,

Karen
On Jul 24, 2012, at 6:26 AM, momo wrote:

> Hi All,
> 
> I am trying to build a panel data set, which shows flows from 23 developed
> country to 18 developing country for the period from 1995 to 2010.
> 
> In fact, its the first time for me. So, I put each developed country in 288
> row (18 developing for 16 years) with the 18 developing for 16 years
> period-for example- as follows.
> 
> UK            1           Albania
> UK            1           16 row
> .              1          Albania
> .              1          Algeria
> 288 row    1         16 row
> UK           1          Algeria
> .             1            .
> .             1            .
> 
> US          2         Albania
>              2         16 row
> .             2        Albania
> .             2         Algeria
>              2        16 row
>              2         Algeria
> 288row     2           .
> US           2           .
> 
> and so on
> 
> then I put the variable "ID" (to declare the dataset) takes "1" for the
> first developed country, "2" for the second; and so on until the number
> "23". and the variable "year" from 1995 - 2010 repeated for each developing
> country.
> 
> Is this right structure, is the variable "ID" done well .
> 
> Thank you for your help
> 
> 
> 
> --
> View this message in context: http://statalist.1588530.n2.nabble.com/Construct-a-Panel-dataset-tp7580226.html
> Sent from the Statalist mailing list archive at Nabble.com.
> *
> *   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index