Hi all,
I'm an economics student in college, doing my best to learn STATA. I've browsed the forum and googled everything I could, it took me too long to realize I should just ask. I'm not extremely well versed in STATA, but I know my way around. I feel what I'm trying to do is pretty basic, so hopefully any help I receive will seem familiar to me.
In short I'm working towards doing an interrupted time series with a speed limit increase and crash data. My main objective right now is counting the number of crashes that occurred in each month so I can graph it. I have the date in different variables (as a date(crash_datetime "MDYhm") and as separate varables as month, year, etc.).
Since there are mutiple crashes on any given day, I need to count the observation on a given month/year, but I have not been able to figure it out. My knowledge (and apparently researching ability) of egen, count, and dates is inadequate.
Any help or nudge in the right direction is much appreciated,
Caleb
Related Posts with Counting observations over duplicate dates
Comparing population and sample age and sex distributionHi all, I am not so sure if my logic for the code is right or wrong. I have to check if the age and…
Negative scale value using fixed effects quantile regression xtqregI have individual-level panel wealth-at-age data with 4600 observations on 350 individuals. Because …
Issue about xtpoisson with fixed effects and interpreting interaction effectHi Statalisters, When I use count data model to analyze my panel data with fixed effects, like -xtp…
Fleiss kappa coefficient and Kendall coefficientGood morning. How could you calculate Fleiss's Kappa coefficient and Kendall's correlation coefficie…
2SLS For BeginnersI am would love some help understanding how to run a 2SLS. I am replicating a table and first ran an…
Subscribe to:
Post Comments (Atom)
0 Response to Counting observations over duplicate dates
Post a Comment