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
is it possible to create a new variable with otherwise/else function?Hi All, I am trying t create a new variable that defines Car owned status of a person. What I want i…
Panel VAR Diagnostics / Assumptions.Greetings Statalist Users and team. I'm working on a panel data VAR model using pvar package. Where…
"Subtracting" one string variable from another string variableI'm cleaning up a government dataset that I need some help on. For the sake of simplicity, let's say…
Marginal effects of interaction between continuous and factor variables in fixed effects modelsHello. How may I test the marginal effects of my variables when there is a continuous-factor-interac…
keeping soundex started with a specific letterI have a dataset and want to keep a number of variables - Soundex started with a letter, for example…
Subscribe to:
Post Comments (Atom)
0 Response to Drop observations if not meeting frequency criterium
Post a Comment