BLS_GENDER

Build an extractable slideshow comparing men's and women's occupational earnings using unweighted and employment-weighted distributions.

Syntax

BLS_GENDER(year, minimumEmployment, selector1, selector2, ...)
ArgumentDescription
yearAn annual year, or LATEST. The latest available annual year is used when omitted.
minimumEmploymentMinimum employment, in thousands, required for both men and women in an included occupation. The default is zero.
selector1...Optional occupation codes or case-insensitive name fragments. Multiple selectors use OR logic.

The command returns an extractable BLSGenderOperator. Its JSON representation is the complete animated slideshow.

Complete example

Gender=BLS_GENDER(2025,100)
SLIDESHOW(Gender)

This includes only detailed occupations in which both men and women have at least 100,000 workers. Because BLS data can be revised, the number of qualifying occupations may change.

What the slideshow contains

  1. Study definition and methodology
  2. Table of included occupations, earnings, employment, and women-to-men earnings ratios
  3. Women-versus-men occupational scatterplot with an equal-earnings line
  4. Men's unweighted histogram and fitted density
  5. Women's unweighted histogram and fitted density
  6. Merged unweighted histograms and fitted densities
  7. Men's employment-weighted histogram and fitted density
  8. Women's employment-weighted histogram and fitted density
  9. Merged employment-weighted histograms and fitted densities
  10. Summary comparing the unweighted and weighted results

Available extracts

ExtractReturns
data or datalistThe four aligned cross-sectional series.
men or men_wagesMen's median weekly earnings by occupation.
women or women_wagesWomen's median weekly earnings by occupation.
men_employmentMen's employment weights.
women_employmentWomen's employment weights.
occupation_count or occupationsNumber of included occupations.
tableDetailed occupational comparison table.
comparison or scatterWomen-versus-men earnings scatterplot.
men_fitMen's unweighted histogram and fitted density.
women_fitWomen's unweighted histogram and fitted density.
men_weighted_fitMen's employment-weighted histogram and fitted density.
women_weighted_fitWomen's employment-weighted histogram and fitted density.
unweighted or unweighted_mergedMerged unweighted histograms and fits.
weighted or weighted_mergedMerged employment-weighted histograms and fits.
summarySummary comparison panel.
slideshowThe complete animated presentation.
jsonSerialized slideshow JSON.

Extraction example

Gender=BLS_GENDER(2025,100)
Data=EX(Gender,data)
Table=EX(Gender,table)
Comparison=EX(Gender,comparison)

MenFit=EX(Gender,men_fit)
WomenFit=EX(Gender,women_fit)
Unweighted=EX(Gender,unweighted)

MenWeighted=EX(Gender,men_weighted_fit)
WomenWeighted=EX(Gender,women_weighted_fit)
Weighted=EX(Gender,weighted)

Summary=EX(Gender,summary)

Unweighted versus employment-weighted

ViewQuestion answeredWeight assigned
UnweightedWhat does the distribution of earnings look like across occupational categories?Each included occupation receives one observation.
Employment-weightedWhat earnings distribution is implied by where men and women are employed?Each occupation is weighted by the number of workers of that sex.

The weighted calculation does not treat wage × employment as a new wage observation. Employment supplies the frequency weight attached to each occupation's median wage. The weights are sex-specific because men and women are distributed differently across occupations.

Statistical interpretation

Best use

Use BLS_GENDER to show why a single aggregate earnings statistic can conceal two distinct forces: differences in earnings associated with occupations and differences in where men and women work. The paired unweighted and weighted slides make that composition effect visible.

Related commands