* do-file for Additional multivariate exercise 2, VHM 802, Winter 2021
version 16 /* works also with versions 14-15 */
set more off
cd "r:\

* Manly Example 1.5
import delimited r:\euroemp.csv, clear
graph matrix agr-tc
graph box agr-tc, showyvars legend(off)
tabstat agr-tc, statistics( mean sd min p25 p50 p75 max skewness )
spearman agr-tc
gen total=agr+min+man+ps+con+ser+fin+sps+tc
sum total
tab total

chernoff, isize(agr) nose(min) bdens(man) fline(ps) msize(con) mcurv(ser) psize(fin) hupper(sps) hdark(tc) order(group country) ilabel(country) legend(3)
