Create table with grouped data survey means from the PCN Masterfile.

db_create_gd_svy_mean_table(pcn_master_path, pfw_table, inventory)

Arguments

pcn_master_path

character: Path to PCN masterfile.

pfw_table

data.table: A table with the price framework file.

inventory

data.table: A table with the PIP inventory.

Details

Survey means cannot be automatically calculated for grouped data, so at some stage the mean needs to be entered manually. This function reads from the PCN masterfile to ensure that PCN and PIP uses the same data means.

This source should be changed in the future.