Helper function to calculate centers and standard deviation for the PC model.

get_sd_center(df, category_col = "category", value_col = "value", SCALE = TRUE)

Arguments

df

dataframe with decile data

category_col

column with categorical definitions for deciles

value_col

Name of values to be output.

SCALE

Boolean which defines if the PC analysis is to be scaled or not.