Hi there, I really appreciate any help you can offer me.
Basically I have a relational database issue and need to merge a few csv files together in Stata but I can't seem to figure out how.
VISIT_DATA
Visit_ID
Patient_ID
SERVICE_DATA
Visit_ID
Visit_Service_ID
DISPENSATION_DATA
Visit_ID
Visit_DIspensation_ID
PATIENT_DATA
Patient_ID
Visit_ID
I started by merging PATIENT_DATA to VISIT_DATA
merge 1:m PATIENT_ID using VISIT_DATA
then PATIENT_DATA&VISIT_DATA to DISPENSATION DATA
merge 1:m VISIT_ID using DISPENSATION_DATA
So I have a database that has PATIENT DATA, VISIT_DATA, and DISPENSATION_DATA linked.
I need to also link SERVICE_DATA.
However, since for every patient there are many visits, and many services, and many dispensations - the 1:m data linkage won't work.
Any suggestions?
Thanks for any guidance you can offer.
Jeanine
Related Posts with Merging databases
Scale in graph dotDear all, I am having problems with the following code: Code: graph dot (mean) promedio2017 prome…
sum of a variable under a conditionI am trying to summarize the serval variables if they are greater than the maximum of another variab…
Conflicting results of cross sectional dependence testing in panel data (PesaranCD, Frees, Friedman tests)Conflicting results of cross sectional dependence testing in panel data (Pesaran CD, Frees, Friedman…
Total Factor productivty using malmq2 commandHi every body,,, Currently i am conducting study to evlaute the productivty and the tehcnical effic…
How to reduce space between items in graph editorHello Statalisters, I have produced a meta forestplot (see png below), but I do not know how to redu…
Subscribe to:
Post Comments (Atom)
0 Response to Merging databases
Post a Comment