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]

st: unbalanced panel


From   [email protected]
To   [email protected]
Subject   st: unbalanced panel
Date   Thu, 22 Jul 2010 13:25:56 +0300

Fortunatly there was no problem with the memory with the long data!
I tried as well the desting command!
But xtreg still does not work!
Now "not sorted" appears in the screen...
Should I use the sort or gsort command?



Αρχικό μήνυμα από  Martin Weiss <[email protected]>:

>
> <>
>
>
> -destring- may well be the more appropriate command. Where did I recommend
> -generate-?
>
> The "long" data type won`t hurt you unless you run into memory constraints.
> -compress- will automatically change your variables to the lowest data type
> required to hold them...
>
>
>
> HTH
> Martin
>
>
> -----UrsprΓΌngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von [email protected]
> Gesendet: Donnerstag, 22. Juli 2010 11:46
> An: [email protected]
> Betreff: Re: st: AW: unbalanced panel
>
> Dear Martin,
> I used the encode and generate commands as you suggested to convert my
> strings
> into "long" type variables and now I'm trying the xtset!
> Thanks!
>
>
> Ξ?Ο?Ο?ΞΉΞΊΟ? ΞΌΞ?Ξ½Ο?ΞΌΞ± Ξ±Ο?Ο?  Martin Weiss <[email protected]>:
>
> >
> > <>
> >
> >
> > BTW, -destring- has an option -dpcomma- designed for conversion from comma
> > to decimal point:
> >
> >
> >
> > *************
> > clear*
> >
> > set obs 2
> > generate str var1 = "5,43" in 1
> > generate var2 = 4.32 in 1
> > replace var1 = "4.32" in 2
> > replace var2 = 2.65 in 2
> >
> > describe
> > destring var1, replace dpcomma
> > describe
> > *************
> >
> >
> >
> > HTH
> > Martin
> >
> >
> > -----UrsprΒ¨Ξ?ngliche Nachricht-----
> > Von: [email protected]
> > [mailto:[email protected]] Im Auftrag von
> > [email protected]
> > Gesendet: Donnerstag, 22. Juli 2010 11:15
> > An: [email protected]
> > Betreff: st: unbalanced panel
> >
> > Hi everybody!
> > I would like to ask your help on unbalanced panel in Stata.
> > As I'm a begginner in Stata, sorry if my questions are silly!
> > I have create a sheet in Excel that consists of 25 countries with
> > observations
> > covering a 18 year period. For some countries some observations for some
> > years
> > are missing, so I left these cells empty and I think I should run an
> > unbalanced
> > panel (two way FE) to see the time and country effects.
> > 1)I have imported these data in Stata and some of my observations are
> marked
> > in
> > red whereas some other are as usual in black letters. Do these red written
> > observations indicate that something's going wrong or is it so because they
> > are
> > decimal numbers including commas?
> > 2)When I'm trying to estimate the time effects and two way fixed effects in
> > my
> > data the xtreg does not work.
> > i()required
> > appears in Stata screen.
> > Perhaps I do not use the right commands.
> > I follow the process that Β¦ΚΌaum suggests in his book.
> > That is:
> > .tabulate year, generate (yr)
> > .forvalues i=1990/2007{
> > 2. local ++j
> > 3. rename yr'j' yr'i'
> > 4. quietly replace yr'i'=yr'i'-yr18
> > 5. }
> > .drop yr18
> > .xtreg MY DEPENDENT {MY INDIPENDENT} yr*, fe
> > Can you please suggest which command should I use?
> > Many thanks!
> >
> > *
> > *   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/
>
>
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index