R/data_wages.matrix.R
wages.matrix.Rd
A random sample of 1,280 workers from the Cirrent Population Survey (CPS) for March 1995.
wages.matrix
A list with two elements:
wages
gender, race, union, education, experiemce, and age
X
has the following elements:
Gender, 1 for female, 0 for male.
Race, 1 for nonwhite workers and 0 for white workers.
Union status, 1 if in union, 0 otherwise.
Education in years.
Work experience in years.
Age in years.
Both y
and X
have 1289 rows.
From Chapter 4 in Gujarati (2019).
Gujarati, D. N. (2019). Linear regression: A mathematical introduction. Thousand Oaks: SAGE Publications. ISBN:9781544336558. Google:pqxyDwAAQBAJ
#> List of 2 #> $ X: num [1:1289, 1:7] 1 1 1 1 1 1 1 1 1 1 ... #> ..- attr(*, "dimnames")=List of 2 #> .. ..$ : NULL #> .. ..$ : chr [1:7] "constant" "gender" "race" "union" ... #> $ y: num [1:1289, 1] 11.6 5 12 7 21.1 ... #> ..- attr(*, "dimnames")=List of 2 #> .. ..$ : NULL #> .. ..$ : chr "wages"#> wages #> [1,] 11.55 #> [2,] 5.00 #> [3,] 12.00 #> [4,] 7.00 #> [5,] 21.15 #> [6,] 6.92#> constant gender race union education experience age #> [1,] 1 1 0 0 12 20 38 #> [2,] 1 0 0 0 9 9 24 #> [3,] 1 0 0 0 16 15 37 #> [4,] 1 0 1 1 14 38 58 #> [5,] 1 1 1 0 16 19 41 #> [6,] 1 1 0 0 12 4 22