A random sample of 1,280 workers from the Cirrent Population Survey (CPS) for March 1995.

wages.matrix

Format

A list with two elements:

y

wages

X

gender, race, union, education, experiemce, and age

X has the following elements:

gender

Gender, 1 for female, 0 for male.

race

Race, 1 for nonwhite workers and 0 for white workers.

union

Union status, 1 if in union, 0 otherwise.

education

Education in years.

experience

Work experience in years.

age

Age in years.

Both y and X have 1289 rows.

Source

From Chapter 4 in Gujarati (2019).

References

Gujarati, D. N. (2019). Linear regression: A mathematical introduction. Thousand Oaks: SAGE Publications. ISBN:9781544336558. Google:pqxyDwAAQBAJ

Examples

data(wages.matrix, package = "jeksterslabRdatarepo") str(wages.matrix)
#> 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"
head(wages.matrix[["y"]])
#> wages #> [1,] 11.55 #> [2,] 5.00 #> [3,] 12.00 #> [4,] 7.00 #> [5,] 21.15 #> [6,] 6.92
head(wages.matrix[["X"]])
#> 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