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!
Rdrobust issue with covariatesHi all, I am running the following code: Code: gen lasso1=. replace lasso1 = max_la_score- (-0.882…
composite index from binary variablesHi, I'm new to Statalist. I've a doubt about composite index construction approach starting from bin…
fetchcomponents.adoI wonder if anyone is using the old fetchcomponents.ad written by Mehmet F. Dicle for accessing yaho…
P-value in two-sample t-testHello, I am currently working with a database with the purpose of comparing annual mammography read…
Diff-in-Diff with Multiple Treatments for Same UnitsHi everyone, Can you help me out with any helpful Stata code and/or even theoretical work that can …
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate the formula Euclidean distance as the picture,many thanks!
Post a Comment