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: Coding assistance.
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Coding assistance.
Date
Thu, 2 Feb 2012 10:01:53 +0000
Don't understand this. What's FDI? There are lots of non-economists on
this list. What does your variable -foreign- mean? Is it "foreign
ownership" or "receives FDI"? Are they the same thing? Why isn't the
variable -foreign- already the dummy you want, except that you just
reverse it by 1 - foreign?
We can't comment on your failures if you don't show what you tried and
explain why they are not what you want.
Nick
On Thu, Feb 2, 2012 at 9:52 AM, natasha agarwal
<[email protected]> wrote:
> I have panel of unbalanced firm for 5 years. I have the foreign
> ownership variable. I wanted to create a dummy where For example, in
> the case of a firm that receives FDI in 1993, the dummy would take on
> the value of one for 1990, 1991 and 1992 and zero for all other years.
>
> It looks like:
>
> Firm ID Year Foreign Dummy
> 1 1990 0
> 1 1991 0
> 1 1992 0
> 1 1993 1
> 1 1994 1
>
> 2 1990 0
> 2 1991 0
> 2 1992 1
>
> I have been trying to do this for a long time now and am I am failing
> at every attempt.
>
> Any assistance will be highly appreciated.
>
> Thanks,
> Natasha
> *
> * 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/