compute_PC_model_components.RdFunction to calculate PC coefficients for future years
compute_PC_model_components( df, grouping_variables = c("country", "year"), value_col = "Income..net." )
| df | dataframe with decile data |
|---|---|
| grouping_variables | variables to group by |
| value_col | Name of values to be output. |
| inc_col | column with income shares. Make sure these are normalized that is they range from 0-1 |
| category_col | column with categorical definitions for deciles |