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
Rolling regression on id units sub-intervalsDear All, I have a panel dataset and I would like to “rolling” regress my dependent variable on a ma…
Cross Classified Model using Panel DataHello, I'm trying to run a cross classified model using panel data and I was hoping to get some hel…
2sls testsfirst stage reg health variables predict healthpred,xb second stage probit schoolenroll healthpred …
Issue with PMG estimatorHi, I'm new to Stata. I have a panel data which contains 6 sub-groups. There are two inputs GDP (L…
Wald Test with binary predictor - does this make sense?Hi there, to evaluate my logistic regression model I am planing to perform a wald test. Besides my …
Subscribe to:
Post Comments (Atom)
0 Response to summing up total number of events
Post a Comment