- Data analysis is made of two steps that are simultaneously performed 1. secondary parameters calculation 2. principal component analysis (PCA) on the secondary parameters. [
QCI.R or this link] - You only need to define age-groups related to your desired cause on line 44 of the code. By default, it is >1-year-old*. You can choose the options from code line 51. Choose them wisely and based on the GBD Compare tool for non-null estimates. [mind the quotation marks!]
- Secondary parameters include four 1. mortality-to-incidence ratio (MIR)** 2. prevalence-to-incidence ratio 3. YLLs-to-YLDs ratio and 4. DALYs-to-prevalence ratio. These four indirectly show the quality of care. We aim to composite these four into one QCI.
- The first component of PCA on these four measures are then saved and re-scaled into 0-100 and named QCI
- This is a loop, takes some time to calculate based on the dimension of arrays you've chosen [age groups × sex groups].
* Age-standardized values are used for the calculation of QCI in a nation as a whole, aimed for comparison purposes. For age-group strata, data are not age-standardized and comparisons should be made with caution.
** For some portion of GBD's cause list, estimates of Death are close to zero, or the condition is not lethal. In such a situation, theMIR calculation yields lots of zeros and interfere with PCA. In this condition, code must be modified and MIR needs to be removed.
A. Recruit the libraries [Line 1-27]
B. Define age groups on line 44
C. Line 64, if you plan to use age-standardized estimates, by default it uses 'Rate'; otherwise, for all-age estimates, use 'Number'
D. Define your function. The create_data function on line 28th
E. Run the create_data function
F. It would ask you for your main data file [in .dta format] that you have downloaded from GBD, paste the location of file on your machine
G. Then it would ask for iso-3, paste the address [
ISO3.dta or this link] H. Then it would ask for location of folder you plan to save your outputs to.
I. If it loops smoothly, it is working fine. Otherwise, a null has encountered and check your data
K. The other exported file is 'variance_first_component.dta' that resmble the proportion of information [variance] of all data points of your original data enclosed in QCI.