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: Making plots with unbalanced panel data
From
sebas nicaise <[email protected]>
To
<[email protected]>
Subject
st: Making plots with unbalanced panel data
Date
Fri, 1 Jun 2012 12:49:57 +0000
Dear all,
For my research I have to examine the effect of a specific event ( a covenant violation) on firm outcomes. I have a large (unbalanced) panel dataset that contains the following:
date gvkey viol leverageratio
1997q1 1004 0 .2264953
1997q2 1004 0 .2233678
1997q3 1004 0 .2172547
1997q4 1004 0 .2416646
1998q1 1004 1 .2937034
1998q2 1004 0 .2650714
1998q3 1004 0 .2510785
1996q4 1013 0 .0101556
1997q1 1013 0 .0057909
1997q2 1013 0 .0042146
1997q3 1013 0 .0040147
1997q4 1013 1 .0032851
1998q1 1013 0 .0034083
Where Viol is a dummy variable which indicates 1 if a firm is in violation of a covenant.
My question is: How can I ask stata to plot firm outcomes (e.g the mean of leverageratio) around a covenant violation, lets say -4 quarters to +4 quarters.
Hope someone can point me in the right direction.
Thanks,
Sebastiaan
*
* 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/