Hi Everyone,
As the calculated percentage of Y (outcome variable) is too small I wanted to calculate the rate (per 10,000) of Y from the total patients who visited the ED as I don’t have the population size of a study area of a country. I also want to calculate the rate (per 10,000) by sex.
Initially, I multiplied the calculated proportion by 10,000 but I want to double-check if I missed anything. I would appreciate it if you share the Stata code for this.
Please see some parts of the data produced using the -dataex- command.
Thanks for your help.
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
As the calculated percentage of Y (outcome variable) is too small I wanted to calculate the rate (per 10,000) of Y from the total patients who visited the ED as I don’t have the population size of a study area of a country. I also want to calculate the rate (per 10,000) by sex.
Initially, I multiplied the calculated proportion by 10,000 but I want to double-check if I missed anything. I would appreciate it if you share the Stata code for this.
Please see some parts of the data produced using the -dataex- command.
Thanks for your help.
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double ArrivalDate long(sex_cat Y) 1845557400000.004 1 0 1838229360000.0017 1 0 1849343039999.9968 2 0 1835741399999.996 2 0 1856460720000.001 1 0 1851485700000.0007 1 0 1856522100000.004 2 0 1852121160000.0002 2 0 1853668080000.0027 1 0 1858879920000.001 1 0 1840475699999.997 1 0 1853909159999.9963 2 0 1853658539999.9998 1 0 1857027840000.0022 2 0 1838554320000.001 1 0 1853655899999.996 1 0 1854475319999.998 2 0 1838485679999.9959 2 0 1844332860000.001 2 0 1834526099999.9978 1 1 end format %tc ArrivalDate label values sex_cat sex_cat label def sex_cat 1 "Female", modify label def sex_cat 2 "Male", modify label values Y Y label def Y 0 "No outcome", modify label def Y 1 "Outcome", modify
Comment