資料的統計性質
dat=read.csv("data/CPS1985.csv")
head(dat)
## wage education experience age ethnicity region gender occupation
## 1 5.10 8 21 35 hispanic other female worker
## 2 6.67 12 1 19 cauc other male worker
## 3 4.00 12 4 22 cauc other male worker
## 4 7.50 12 17 35 cauc other male worker
## 5 13.07 13 9 28 cauc other male worker
## 6 4.45 10 27 43 cauc south male worker
## sector union married
## 1 manufacturing no yes
## 2 manufacturing no no
## 3 other no no
## 4 other no yes
## 5 other yes no
## 6 other no no
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.000 5.250 7.780 9.032 11.250 44.500