cps: A subset of data from Current Population Survey (CPS).

cpsR Documentation

A subset of data from Current Population Survey (CPS).

Description

Labor market data on 18,253 middle age (25-54 years) married women in the year 2022.

Usage

data(cps)

Format

A data frame with 18,253 rows and 23 columns. It contains information on wages and some socio-demographic characteristics of the middle age (25-54 years) married women:

age

the age measured in years.

sage

the same as age but for a spouse.

work

a binary variable for the employment status (0 - unemployed, 1 - employed).

swork

the same as work but for a spouse.

nchild

the number of children under age 5.

snchild

the same as nchild but for a spouse.

health

subjective health status (1 - poor, 2 - fair, 3 - good, 4 - very good, 5 - excellent).

shealth

the same as health but for a spouse.

basic

a binary variable which equals 1 for those who have graduated from high school or has at least some college or has associated degree and does not have any higher level of education, 0 - otherwise.

bachelor

a binary variable which equals 1 for those whose highest education level is a bachelor degree.

master

a binary variable which equals 1 for those whose highest education level is a master degree.

sbasic

the same as basic but for a spouse.

sbachelor

the same as bachelor but for a spouse.

smaster

the same as master but for a spouse.

educ

a categorical variable for the level of education such that educ = 0 if basic = 1, educ = 1 if bachelor = 1 and educ = 2 if master = 1.

seduc

the same as educ but for a spouse.

weeks

a total number of weeks worked durning the year.

sweeks

the same as weeks but for a spouse.

hours

a usual number of working hours per week.

shours

the same as hours but for a spouse.

wage

the wage of the individual.

swage

the same as wage but for a spouse.

lwage

an inverse hyperbolic sine transformation of the hourly wage.

slwage

the same as lwage but for a spouse.

state

a state of residence.

...

Source

<https://www.census.gov/programs-surveys/cps.html>

References

Flood S, King M, Rodgers R, Ruggles S, Warren R, Westberry M (2022). Integrated Public Use Microdata Series, Current Population Survey: Version 10.0 [dataset]. doi: 10.18128/D030.V10.0.

Examples


data(cps)
model <- msel(work ~ age + bachelor + master, data = cps)
summary(model)
 

switchSelection documentation built on Sept. 26, 2024, 5:07 p.m.