[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: counting events
How to respect the current order of observations
was explained in my last email.
gen event = sum(incident != incident[_n-1])
which is the solution if you want to keep the order of
observations. Usually I don't care about it, but it is
nice to know it. Thanks Nick!!
If you are exploring your data, -table- it is very useful.
table incident, c(N count)
* For searches and help try: