Hi together,
i use stata 16.0 and have a panel data set including banks (unique identifier is the variabel "SNLInsititutionKey"), "quarters" from 200q1-2019q4 and "assets" (in thousand, $000):
My question is now, how i can delete all oberservations of a bank (e.g. SNLInstitutionKey) if at least one of its quarterly observations have assets that are lower than $100 million.
I tried: by SNLInsitutionKey: drop if assets<=100000
But it only deletes the obeservations where assets is equal/smaller than $100 million and not all obervations of the bank which may only show in one quarter lower than $100 million assets.
Snapshot from my dataset:
Array
Thanks a lot for your help,
Lea
Related Posts with Drop panel if condition of at least one observation of panel is true
Generate treatment variables for panel data analysisDear community, I am working on a panel data analysis, where I have to generate a treatment variabl…
HH to individual levelHello, In the survey I'm using, I have information on time taken to collect water by women in a HH a…
Number of one variable according to two other variablesHi Dears, My datset includes Firms identification: NPC_FIC, Classification by broad economic catego…
Cmh test in survey settingI want to get a 3x3 contingency table for survey data and do cmh test. i see in previous post that s…
Where to find globdist.adoI am reading a Stata do file which was probably authored before 2015. It uses globdist. I tried "fi…
Subscribe to:
Post Comments (Atom)
0 Response to Drop panel if condition of at least one observation of panel is true
Post a Comment