Dear all,
I would like to find out:
1. Separate proportion of each drug classes then each drugs over entire time and by year
2. Proportion of drug classes by broad age group.
Data looks as below:
I would really appreciate If you may help me to solve the problem.
Thank you in advance.
I would like to find out:
1. Separate proportion of each drug classes then each drugs over entire time and by year
2. Proportion of drug classes by broad age group.
Data looks as below:
ID | Antiplatelet drugs | Lipid lowering agents | Supply date | ||
Aspirin | Clopidgrel | Heparin | |||
0001 | 1 | 0 | 1 | 0 | May 2002 |
0001 | 0 | 0 | 0 | 1 | March 2008 |
0001 | 0 | 0 | 1 | 0 | June 2016 |
0001 | 0 | 0 | 0 | 0 | Nov 2013 |
0001 | 1 | 1 | 0 | 0 | Sep 2003 |
0002 | 0 | 1 | 0 | 0 | July 2007 |
0002 | 0 | 1 | 0 | 1 | March 2006 |
0002 | 0 | 0 | 0 | 1 | Jan 2009 |
0002 | 1 | 0 | 0 | 0 | Feb 2010 |
0002 | 1 | 1 | 0 | 0 | June 2011 |
Thank you in advance.
Comment