My dataset consists of time-series observation of US firms with identifiers like gvkey, cusip and a construct variable cusip_fiscalyear. I use data between 1995 and 2005, but need to drop all observations of a particular firm if the observations are less than 8 years. I suppose I need to generate a kind of frequency variable? And I suppose I can use any one of the three identifiers.
Related Posts with Drop observations if not meeting frequency criterium
dummy variable conditional not working for all panel IDsDear Stata users, I have a panel data set consisting of municipalities in my country from 2000-2020…
Graphing by year?Good afternoon everyone, I am fairly new to stata and am struggling with the graphing aspect. Namel…
Reshape long with multiple variablesHello, I have wide-structured data for answers on a 4 item scale at 2 time points. Please see data d…
Approximating trend in time-seriesHello! I am trying to come up with a metric to capture the temporal pattern of the average of numer…
Rolling regression with pooled time series data; plotting 10 year windows with 95% CIHi everyone, I basically want to replicate figure four in Pontusson and Kwon (2010) with different …
Subscribe to:
Post Comments (Atom)
0 Response to Drop observations if not meeting frequency criterium
Post a Comment