Learn R Programming

genderstat (version 0.1.5)

gender_pay_gap: Gender Pay Gap (GPG)

Description

Computes the Gender Pay Gap (GPG) based on the provided dataset. The GPG is calculated as the percentage difference between male and female incomes, providing insight into income disparities between genders.

Usage

gender_pay_gap(data)

Value

A data frame with two columns: country and gpg, representing the GPG values for each country.

Arguments

data

A data frame containing the required metrics for GPG computation. The data frame must include the columns: female_income and male_income.

Examples

Run this code
data(real_data_GPG) # Load example dataset
gpg_results <- gender_pay_gap(real_data_GPG)
print(gpg_results)

Run the code above in your browser using DataLab