R Dataset / Package ISLR / Wage
November 27, 2023
On this R-data statistics page, you will find information about the Wage data set which pertains to Mid-Atlantic Wage Data. The Wage data set is found in the ISLR R package. You can load the Wage data set in R by issuing the following command at the console data("Wage"). This will load the data into a variable called Wage. If R says the Wage data set is not found, you can try installing the package by issuing this command install.packages("ISLR") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Wage R data set. The size of this file is about 465,200 bytes.
Mid-Atlantic Wage Data
Description
Wage and other data for a group of 3000 workers in the Mid-Atlantic region.
Usage
Wage
Format
A data frame with 3000 observations on the following 12 variables.
year-
Year that wage information was recorded
age-
Age of worker
sex-
Gender
maritl-
A factor with levels
1. Never Married2. Married3. Widowed4. Divorcedand5. Separatedindicating marital status race-
A factor with levels
1. White2. Black3. Asianand4. Otherindicating race education-
A factor with levels
1. < HS Grad2. HS Grad3. Some College4. College Gradand5. Advanced Degreeindicating education level region-
Region of the country (mid-atlantic only)
jobclass-
A factor with levels
1. Industrialand2. Informationindicating type of job health-
A factor with levels
1. <=Goodand2. >=Very Goodindicating health level of worker health_ins-
A factor with levels
1. Yesand2. Noindicating whether worker has health insurance logwage-
Log of workers wage
wage-
Workers raw wage
Source
Data was manually assembled by Steve Miller, of Open BI (www.openbi.com), from the March 2011 Supplement to Current Population Survey data.
http://thedataweb.rm.census.gov/TheDataWeb
References
Games, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) An Introduction to Statistical Learning with applications in R, www.StatLearning.com, Springer-Verlag, New York
Examples
summary(Wage) lm(wage~year+age,data=Wage) ## maybe str(Wage) ; plot(Wage) ...
Dataset imported from https://www.r-project.org.
<iframe src="https://jmagunia.com/iframe/r-dataset-package-islr-wage.html" width="100%" height="100%" style="border:0px"></iframe>