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 on April 23, and its replacement, is already up and running.

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

st: dividend programming question

From   "Khieu, Hinh" <>
To   "" <>
Subject   st: dividend programming question
Date   Sat, 23 Mar 2013 18:45:42 +0000

Dear all,

I have an unbalanced time series data: firm ID, year, and annual dividend amount. I want to create 2 binary variables

1/  indicating when firm A pays dividends for the first time. Firms may enter the dataset and pay div for the first time right at the first data entry (example: firm A first appears in data 1990 and pays div in 1990, and the variable should be 1 for 1990 and zero for other years. Firms may enter the data set and do not pay any div until 5 years later (example: first appear in data 1990 and pay div in 1995, and dummy should be 1 for 1995 and zero for other years.) What makes it complicated is that firms may skip paying div for some years and come back starting to pay div again. The same binary variable should be 1 if the firm does not pay div for 5 years and starts repaying div in year 6 (example: first appear in data 1990 and pay div in 1995, and dummy should be 1 for 1995 and firm does not pay any div in years 1996 through 2001 and starts paying div in 2002, dummy should be zero for 1996-2001 and 1 for 2002 and zero for other years.)

2/ the second dummy captures the omission of dividends above. If firm A pays div in 1995-1996, stops paying from 1997-2001, and pays again 2002 to 2013, dummy should be zero for 1995-1996, one for 1997-2001, and zero again 2002-2013. The problem is that sometimes observations for 1997-2001 are just dots, sometimes the observations are like this (year 1997-2001 are not there):

FirmA                    Div paid

1995                     .10

1996                     .10

2002                     .15

2003                     .15

2004                     .15

2005                     .10

2006                     .10

2007                     .10

2008                     .10

2009                     .12

2010                     .12

2011                     .12

2012                     .15

In this case, I want the omission dummy to be 1 in year 1996.

I greatly appreciate any amount of help here.



*   For searches and help try:

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