In a prospective study with 336 patients, I have a variable "number_of_events_since_operation". It contains information (a numerical value) on have many events each patient has experienced (range 0-25). Is it possible to count the total number of events for the whole group? (i.e. adding the number of events from each patient)? As you can see, 21 patients experienced one event, 33 patients experienced two events, etc.
I'm aware that I can calculate by hand, but I guess there must be a STATA command for this purpose.
Thanks,
Therese
Array
Related Posts with summing up total number of events
Generate a moving window averageIs there an easy way to generate a moving window average? For instance, for every 5 minutes of Ta_NO…
Simple help with global macrosHello, I believe I incorrectly posted this to the Statalist earlier today. I recognize this questio…
Guarantee 3 consecutive observations before and after the eventDear Stata Users, I need to keep just those firms (gvkey) that have 3 year consecutive observations…
Weak IV test postestimation test when using ivreghdfe command?Dear STATA community, I am hoping you can help me find a command I am looking for. My coauthor and …
LPOLY: How can I change the scale of the axis on the lpoly graph?Dear Stata users: When I do the lpoly graph, it seems no option allows me to restrict my scale of t…
Subscribe to:
Post Comments (Atom)
0 Response to summing up total number of events
Post a Comment