unmem: Member of a union

unmem title image

Description

unmem indicates whether the respondent is a member of a union. See also union and uncov.

Availability

Sample Years
Basic 1983 - present
May 1973 - 1981
ORG 1983 - present

Note

Union membership is not available in 1982.

Values

Value Label
0 Not a union member
1 Union member
Variable creation
*******************************************************************************
* Union membership
*******************************************************************************
capture rename unmem old_unmem
gen byte unmem = .

if $maycps == 1 {
    if tm(1973m1) <= $date & $date <= tm(1981m12) {
        replace unmem = 0 if old_unmem == 1
        replace unmem = 1 if old_unmem == 0
    }
}

if $monthlycps == 1 {
    if tm(1983m1) <= $date & $date <= tm(1993m12) {
        replace unmem = 0 if old_unmem == 2
        replace unmem = 1 if old_unmem == 1
    }
    if tm(1994m1) <= $date {
        replace unmem = 0 if peernlab == 2
        replace unmem = 1 if peernlab == 1
    }
}

lab var unmem "Member of a union"
lab def unmem 1 "Union member" 0 "Not a union member"
lab val unmem unmem
notes unmem: Only available in 1973-1981 May, 1983-present ORG
notes unmem: Not available in 1982
notes unmem: 1973-1981 Unicon: unmem
notes unmem: 1983-1993 Unicon: unmem
notes unmem: 1994-present CPS: peernlab
Figure creation
keep if age >= 16 & selfemp == 0

gen wgt = orgwgt
replace wgt = basicwgt if year < 1983

gcollapse (mean) unmem [pw=wgt], by(year female) fast
reshape wide unmem, i(year) j(female)
foreach var of varlist unmem0 unmem1 {
    replace `var' = `var' * 100
    sum `var' if year == 1977
    local `var'yvalue = r(mean)
    local `var'xvalue = 1977
}

local color1 228 26 28
local color2 55 126 184
local color3 77 175 74
local color4 152 78 163
local color5 255 127 0

local unmem0yvalue = `unmem0yvalue' + 2.5
local unmem1yvalue = `unmem1yvalue' - 4


line unmem0 unmem1 year if year < 1982, lcolor("`color3'" "`color2'") || ///
line unmem0 unmem1 year if year > 1982, lcolor("`color3'" "`color2'") ///
legend(off) ///
xlabel(1975(5)2015) ///
ylabel(0(5)30 35 "35%", angle(0) gmin gmax) ///
xtitle("") ytitle("") ///
graphregion(color(white)) plotregion(color(white)) ///
title("Union members as a share of the workforce, by gender", size(medium)) ///
text(`unmem0yvalue' `unmem0xvalue' "Men", color("`color3'") placement(c)) ///
text(`unmem1yvalue' `unmem1xvalue' "Women", color("`color2'") placement(c))
graph export ${variableimages}unmem_titleimage.svg, replace