Suppose, I have two datasets given below, now how can I merge the datasets so that resulting values in the merged dataset gets multiplied with each other. How should i go about it? For example: Australia(1996) = [1st dataset] * Australia (1996 HS-01) = [2nd dataset] and so on.
Code:
* Example generated by -dataex-. For more info, type help dataex clear year (AfghanistanIslamicRepof Albania Algeria Angola Anguilla AntiguaandBarbuda ArmeniaRepof ArubaKingdomoftheNetherland Australia Austria) 1989 . . 1.7805092 . . . . 1.4666357 1.238932 14.81106 1990 . . 2.3200164 1.108489e-17 2.3214445 . . 1.4727408 1.2781003 12.469996 1991 . . 5.778347 3.599408e-17 2.329948 . . 1.4913995 1.2677894 12.69543 1992 . 21.050524 8.729126 6.368768e-16 2.3147259 . . 1.503625 1.318393 12.063948 1993 . 51.4552 10.926892 9.67757e-14 2.3442645 . .063500166 1.5366895 1.4072763 12.85402 1994 . 56.9835 20.63763 2.2151773e-11 2.3648777 . 68.153564 1.5921566 1.3007553 12.664124 1995 . 58.53213 35.418964 2.754596e-08 2.3322291 . 257.25287 1.600767 1.3056957 11.1169 1996 . 72.26252 46.90939 .00005288584 2.3469908 . 302.5596 1.6053406 1.233018 11.552455 1997 . 134.02824 51.08487 .0002950785 2.2958624 . 399.4227 1.6157292 1.273254 13.183474 1998 . 161.0418 53.73792 .0010330025 2.3203835 2.873869 439.6783 1.620776 1.4940015 13.28939 1999 . 144.61383 61.17844 .02500585 2.3071392 2.843869 458.9094 1.622241 1.4446623 . 2000 . 146.07794 67.12816 .3698684 2.337161 2.772204 444.0823 1.6327102 1.624464 . 2001 . 146.24883 69.809715 1.9957954 2.378907 2.73383 458.3041 1.6336223 1.8489385 . 2002 . 151.55124 71.92107 8.099205 2.3543591 2.755941 470.942 1.66143 1.7842977 . 2003 . 129.47128 71.22222 26.90513 2.3759816 2.748488 486.7805 1.6839507 1.5015388 . 2004 35.08702 108.77425 67.14297 42.11786 2.4148765 2.731165 467.3898 1.6815217 1.31984 . 2005 39.55905 104.64574 66.94816 52.25508 2.443242 2.696983 390.3276 1.6816036 1.26242 . 2006 41.27896 101.94274 65.784874 52.88837 2.566644 2.6594086 353.6637 1.687828 1.28434 . 2007 43.64998 94.03997 63.25159 55.09134 2.605848 2.6222625 295.1869 1.729508 1.1499054 . 2008 53.44746 86.8458 59.53136 58.37217 2.6964934 2.6600084 277.02225 1.814733 1.1527679 . 2009 50.05978 100.87175 71.05968 70.437164 2.687733 2.654813 341.3327 1.7823178 1.2662634 . 2010 46.45246 103.93667 74.38599 91.90572 2.7 2.7 373.6605 1.79 1.0901595 . 2011 50.66568 101.16215 73.90469 103.33727 2.7410235 2.70785 388.7258 1.810119 .9708448 . 2012 57.55392 108.4296 83.81477 113.47013 2.723274 2.7425385 421.2708 1.7845488 .9642726 . 2013 66.24287 106.4024 87.30865 122.98674 2.6878986 2.7315824 447.8219 1.717066 1.0442442 . 2014 70.536255 106.21573 89.7697 132.23444 2.638283 2.717261 460.784 1.696777 1.1278877 . 2015 74.7494 131.12564 117.40384 176.0725 2.609523 2.74034 548.5775 1.7028126 1.3721024 . 2016 85.52621 127.15306 134.08046 309.7698 2.563564 2.692954 537.0112 1.665939 1.3868723 . 2017 88.1177 121.90525 140.5621 399.26465 2.542581 2.700927 533.371 1.6144195 1.3427736 . 2018 91.71642 110.08546 150.31595 710.5589 2.491299 2.668355 534.07556 1.6330698 1.370266 . 2019 99.38748 111.54207 154.08485 1178.9629 2.4669015 2.658373 529.3395 1.6722918 1.469829 . 2020 . 110.74482 165.57846 . . . 538.65686 . 1.4790536 . end
Code:
* Example generated by -dataex-. For more info, type help dataex clear iYear str210 ProductSector float(Albania AntiguaandBarbuda Argentina Armenia Australia) 1996 "HS - 01" . . .005412923 . .009761705 1996 "HS - 02 " . . .000595907 . .00012810821 1996 "HS - 03 . . .0000435198 . .002957913 1996 "HS - 04" . . .007955423 . .007539196 1996 "HS - 05" . . .015250857 . .03253398 1997 "HS - 01" . . .003493172 . .004160443 1997 "HS - 02" . . .0012534298 . .01326288 1997 "HS - 03" . . .001726718 . .010663555 1997 "HS - 04" . . .00031747445 . .017899036 1997 "HS - 05" . . .001720109 . .00010939194 end

Comment