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!
x-axis labeling year and month, loop questionHi everyone, I followed this tutorial on how to get an x-axis label for my data but I'm having trou…
Non Normal Panel DataHi, I am relatively new to econometrics. I want to know does panel data have to be Normal? My data o…
Estimates table - mlogitHi, I want to report only certain coefficients from multinomial logistic regression. I am using the…
foreachPlease help identify why this loop wont work on "`x'=="Z591". I get the message "type mismatch" befo…
Augmented Dickey Fuller - advice abount rejection and lagsHi all, I'm really rusty with econometrics. I'm using hourly data for a period of 5 years for electr…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate the formula Euclidean distance as the picture,many thanks!
Post a Comment