Hello!
This is Babar, quite new here in this forum and here is my first question.
" I have a long data of patients who who were admitted to hospital for cardiovascular diseases and I want to check that, were they were using cardiovascular disease before the admission or not. And I also have a purchase history of medicines on different dates. I want to check that how many used it before admission and how many not? Could kindly guide me how can I count such people. Here is an example of my data.
Person 1: 05jan2010 (admission date) 14jan 2010 (discharge date)
Purchase history: 05 Dec 06 (1st purchase) 02 Feb 07 (second purchase) 05jul07 (3rd purchase) etc.
Thank you in advance.
Related Posts with How to count a purchase date of medicines?
Set base group for 2 variables when including interaction terms in a regressionDear all, I am currently running a regression in Stata that involves an interaction term between ye…
Gologit 2 interpretationHi everyone, I have read Williams' article about Gologit2 model. I have some concerns about the inte…
Extracting Residuals from loop regressionsDear all, I would like to obtain my residuals from my loop regressions, but I can't find a way to e…
Results of the Hsiao procedure for the homogeneity test on panel dataHi Statalists, I work on a panel of 5 individuals and 38 years. I performed the Hsiao test to test …
Parallel trends assumption test for a two way fixed effect model (omitted treatment variable)Hi everyone, I want to test for the parallel trend assumption in the difference in differences. My …
Subscribe to:
Post Comments (Atom)
0 Response to How to count a purchase date of medicines?
Post a Comment