Login or Register
Log in with
Forums
FAQ
Search in titles only
Search in General only
Advanced Search
Search
Home
Forums
Forums for Discussing Stata
General
You are not logged in. You can browse but not post. Login or
Register
by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the
FAQ
.
Announcement
Collapse
No announcement yet.
X
Collapse
Posts
Latest Activity
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Filtered by:
Clear All
new posts
Varvara Kuzmenko
Join Date:
Oct 2023
Posts:
2
#1
Drop the first two years of data for each firm
12 Oct 2023, 01:30
Hello! Each firm in the data have several years. I need to drop the first two years of the firm. How can I do this? (fyear and firms)
Thank you
Attached Files
Carlo Lazzaro
Join Date:
Apr 2014
Posts:
17730
#2
12 Oct 2023, 02:05
Varvara:
you may want to try:
Code:
bysort firm (fyear): drop if _n<=2
Kind regards,
Carlo
(Stata 19.0)
Comment
Post
Cancel
Previous
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment