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
System-gmm xtabond2 - Correct specifications of additional lags of a regressor in the instrument set?Dear statalist users, I am using xtabond2 in Stata 13.1 to estimate the effects of police inspectio…
Testing for Serial Correlation and Individual EffectsHi, Sorry if I am sending a duplicate question, but I found no equivalent question in the list. I a…
msymbolI'm quite new to state. I wanted to make the graph I created (which I'm also not sure of if its corr…
Match value labels from two different datasetsDear Statalisters I have two different datasets with information on States and Districts. Since the…
How to test *coefficient estimates across samples using the same model?Dear All, I have the below models. I run the same model in two different samples (firms which have …
Subscribe to:
Post Comments (Atom)
0 Response to Counting observations over duplicate dates
Post a Comment