Dear Profs and Colleagues,
I am going to compute 2 formulas: Euclidean Distance (Standardized) and Kogut and Singh (1988) index.KSIij is the cultural distance between country i and country j. Iki and Ikj are the values of cultural dimension k for country i and country j, respectively. Vk is the variance of the cultural dimension k. (k here has 4 dimensions).

Kogut and Singh (1988) index:

First, I Computed the variance of each cultural dimension:
Now I have variances for 4 dimensions :
Afterward, I don't know what should I do to compute those two formulas. in case the variances are correct.
Any ideas appreciated.
Cheers,
Paris
I am going to compute 2 formulas: Euclidean Distance (Standardized) and Kogut and Singh (1988) index.KSIij is the cultural distance between country i and country j. Iki and Ikj are the values of cultural dimension k for country i and country j, respectively. Vk is the variance of the cultural dimension k. (k here has 4 dimensions).
Kogut and Singh (1988) index:
First, I Computed the variance of each cultural dimension:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int cultural_dimension1 byte cultural_dimension2 int(cultural_dimension3 cultural_dimension4) . . . . 80 38 53 68 64 27 41 52 . . . . . . . . 49 46 56 86 11 55 79 70 38 90 61 51 . . . . 80 20 55 60 70 30 40 85 69 38 49 76 46 76 48 54 43 67 67 61 63 23 28 86 80 20 66 30 67 13 64 80 35 15 21 86 . . . . 57 58 57 74 35 67 66 65 18 74 16 23 . . . . . . . . 78 8 63 67 40 60 30 60 . . . . 57 51 42 86 . . . . 33 63 26 59 68 71 43 86 35 89 66 35 . . . . . . . . 60 35 57 112 95 6 37 101 68 25 57 29 73 33 40 80 46 80 88 82 78 14 46 48 28 70 68 35 13 54 47 81 77 48 56 40 . . . . 58 41 43 59 . . . . 50 76 70 75 45 39 68 13 . . . . 54 46 95 92 . . . . 60 18 39 85 42 60 19 65 40 60 50 70 44 70 9 63 70 46 53 68 . . . . . . . . . . . . . . . . 56 59 47 96 81 30 69 82 104 26 50 36 . . . . 31 69 8 50 22 79 58 49 95 11 44 86 64 16 42 87 94 32 64 44 55 14 50 70 68 60 64 93 . . . . 63 27 31 104 90 30 42 90 86 25 43 92 93 39 36 95 . . . . . . . . 31 71 5 29 74 20 48 8 71 27 19 88 104 52 110 51 85 47 37 92 64 20 34 64 66 37 45 85 47 16 58 55 58 17 45 69 . . . . . . . . 40 91 62 46 61 36 38 100 81 12 73 76 70 20 40 30 . . . . . . . . . . . . . . . . . . . . . . . . . . . . end
Code:
* Compute the mean of each cultural dimension egen mean_cultural_dimension1 = mean(cultural_dimension1) egen mean_cultural_dimension2 = mean(cultural_dimension2) egen mean_cultural_dimension3 = mean(cultural_dimension3) egen mean_cultural_dimension4 = mean(cultural_dimension4) * Compute the squared differences gen squared_diff_cultural_dimension1 = (cultural_dimension1 - mean_cultural_dimension1)^2 gen squared_diff_cultural_dimension2 = (cultural_dimension2 - mean_cultural_dimension2)^2 gen squared_diff_cultural_dimension3 = (cultural_dimension3 - mean_cultural_dimension3)^2 gen squared_diff_cultural_dimension4 = (cultural_dimension4 - mean_cultural_dimension4)^2 * Compute the variance of each cultural dimension egen var_cultural_dimension1 = mean(squared_diff_cultural_dimension1) egen var_cultural_dimension2 = mean(squared_diff_cultural_dimension2) egen var_cultural_dimension3 = mean(squared_diff_cultural_dimension3) egen var_cultural_dimension4 = mean(squared_diff_cultural_dimension4)
Code:
input float(var_cultural_dimension1 var_cultural_dimension2 var_cultural_dimension3 var_cultural_dimension4) 6.618873 14.25023 14.48565 62.29937 6.618873 14.25023 14.48565 62.29937 6.618873 14.25023 14.48565 62.29937 . . . 6.618873 14.25023 14.48565 62.29937 end
Any ideas appreciated.
Cheers,
Paris
Comment