kann mir das bitte jemand in stata kopieren und auswerten?
clear
set obs 8
gen x = _n
replace x = 10.46 if x==1
replace x = 4.2 if x==2
replace x = 11.07 if x==3
replace x = 18.18 if x==4
replace x = 5.54 if x==5
replace x = 7.83 if x==6
replace x = 0.79 if x==7
replace x = 8.47 if x==8
gen y =_n
replace y = 28.64 if y==1
replace y = 10.48 if y==2
replace y = 22.74 if y==3
replace y = 56.65 if y==4
replace y = -13 if y==5
replace y = 53.56 if y==6
replace y = 26.83 if y==7
replace y = 49.97 if y==8
cor x y, covariance

danke
Lesezeichen