View source: R/gender_pay_gap.R
gender_pay_gap | R Documentation |
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.
gender_pay_gap(data)
data |
A data frame containing the required metrics for GPG computation. The data frame must include the columns: |
A data frame with two columns: country
and gpg
, representing the GPG values for each country.
data(real_data_GPG) # Load example dataset
gpg_results <- gender_pay_gap(real_data_GPG)
print(gpg_results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.