analysis | R Documentation |
Runs a salary analysis according to the Swiss standard analysis model
analysis(
data,
reference_month,
reference_year,
usual_weekly_hours = NULL,
female_spec = "F",
male_spec = "M",
age_spec = NULL,
entry_date_spec = NULL
)
data |
a data.frame of employees as produced by |
reference_month |
an integer representing the reference month, i.e. the month for which we analyze the salaries |
reference_year |
an integer representing the reference year, i.e. the year for which we analyze the salaries |
usual_weekly_hours |
an optional numeric representing the usual weekly
working hours (missing values in |
female_spec |
an optional string or numeric representing the way women
are encoded in the |
male_spec |
an optional string or numeric representing the way men are
encoded in the |
age_spec |
an optional string to specify the way |
entry_date_spec |
an optional string to specify the way
|
object of type analysis_model
with the following
elements
params : |
The set of original parameters passed to the function |
data_original : |
The original data passed by the user in the
|
data_clean : |
The cleaned up data which was used for the analysis |
data_errors : |
The list of errors which were found upon checking the data |
results : |
The result of the standard analysis model |
results <- analysis(data = datalist_example, reference_month = 1,
reference_year = 2019, usual_weekly_hours = 40, female_spec = "F",
male_spec = "M", age_spec = "age")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.