Hello All,
I am trying to create algorithms to count Polypharmacy following the article:https://www.longdom.org/open-access/...52.1000151.pdf
from Electronic Health Data that looks like:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte id float fill_date str12 Drug byte Duration
1 21652 "Metformin" 30
1 21652 "Simvastatin" 30
1 21652 "Aspirin" 30
1 21652 "Amaryl" 60
1 21710 "Metformin" 30
1 21710 "Simvastatin" 30
1 21710 "Aspirin" 60
1 21740 "Metformin" 30
1 21740 "Amaryl" 30
1 21740 "Aspirin" 30
1 21771 "Metformin" 30
1 21771 "Amaryl" 30
1 21771 "Aspirin" 30
1 20708 "Metformin" 30
1 20708 "Amaryl" 30
1 21803 "Aspirin" 30
1 21803 "Simavastatin" 30
end
format %tdDD/NN/CCYY fill_date
First: I want to see for different patients if >= 5 drugs were used for >= 60 days in a year.
Second: I want to see for different patients if >= 5 drugs were used for >= 60 days per quarter.
Thank you in advance for help!
Related Posts with Polypharmacy algorithm
auto-filter variable name in dialog boxHi, I'm relatively new to Stata and am wondering if I'm missing something simple when it comes to se…
regressions with Fixed Effect and CCEMG/CCEP give different resultsDear all, I want to ask you about results of fixed effect and CCEP/CCEMG. I regressed my variables…
Test for two mean and standard deviation with unknown sample size.Hi, I have lung function data (mean and SD) for two time point, say, admission and discharge for 20 …
Network Analysis-nwcommandsHi, I am using the nwcommands package to run some social network analysis. I am facing two issues-…
Error-correction model with GMM first differenceDear Statalist users Could you please help with advice on how to construct an Error correction mode…
Subscribe to:
Post Comments (Atom)
0 Response to Polypharmacy algorithm
Post a Comment