Hello everyone, this is my first post here and I'm relatively new to Stata so I was hoping to get some help on an issue I am stuck with.
I have a large dataset (panel data) of different corporations and I want to code it so as to verify a condition: ratio3==1 for three consecutive years as those are the companies I am interested in. I would then drop all the others for which the condition doesn't hold for three years in a row.
Could you please help? Any insight would be greatly appreciated!
Thanks!
Related Posts with verifying a condition for three consecutive years in panel data
Rangestat for leave-out mean----------------------- copy starting from the next line ----------------------- Code: * Example ge…
renaming several variables in loop to reshape by categoryi have several variables that i want to rename according to their category for example S2_Q1P- S2_Q7…
import delimited does not work..Hello, I'm trying to import delimited a csv file, separated by commas. Please find a sample of 5 row…
How to choose model with different log likelihood values?Dear friends, Sorry for my stupid question! I am confused if the model is fitted better when respec…
Confidence intrevals and marginal effects significance for continuos variables in non-linear modelsWhen using margins to evaluate the effect of a continuous variable in a non-linear model (e.g., logi…
Subscribe to:
Post Comments (Atom)
0 Response to verifying a condition for three consecutive years in panel data
Post a Comment