How to calculate the formula Euclidean distance as the picture,many thanks!
clear
input double(year id x)
1 1 80
1 2 90
1 3 30
1 4 100
1 5 56
1 6 300
1 7 300
1 8 100
1 9 50
1 10 110
1 11 35
1 12 67
1 13 54
1 14 76
2 1 54
2 2 34
2 3 22
2 4 44
2 5 55
2 6 66
2 7 77
2 8 88
2 9 35
2 10 67
2 11 54
2 12 76
2 13 54
2 14 34
3 1 100
3 2 50
3 3 110
3 4 35
3 5 67
3 6 54
3 7 35
3 8 67
3 9 54
3 10 76
3 11 54
3 12 34
3 13 100
3 14 50
4 1 110
4 2 35
4 3 67
4 4 54
4 5 100
4 6 50
4 7 110
4 8 35
4 9 67
4 10 54
4 11 76
4 12 54
4 13 54
4 14 76
end
[/CODE]
Array
Related Posts with how to calculate the formula Euclidean distance as the picture,many thanks!
Reshaping data from wide to longWhen I try to reshape I keep getting this error r(111) no xij variables found You typed something li…
unknown function () in a simple generate commandHi, I am trying to generate a new variable b with the following formula using all existing variable…
Ordering legend only in graphI am trying to order the legend with the better outcome group up top in the legend and the worse out…
eclass store resultsDear stata users, I would like to store a matrix and the number of observations after my eclass pro…
Draw a stratified random sampleHi, I am working with a survey where I have information at the individual and household levels. I s…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate the formula Euclidean distance as the picture,many thanks!
Post a Comment