creating a loss dummy variable

9 views
Skip to first unread message

kofi hush

unread,
Nov 1, 2014, 7:57:19 PM11/1/14
to stata-us...@googlegroups.com
i have to create a loss dummy variable when another variable eg. net income is negative in the current and previous years.And it should be unique for every company.
so loss(2010) is 1 when net income is -ve in 2010 and 2009.
Attached is an excel file to see a clear example of the data.
can someone please help me with a code in stata.
thank you
Book1.xlsx
Reply all
Reply to author
Forward
0 new messages