The function replaces the mean of all 1/6 degree predictions within adim unit 1 level serology data with the value of the prediction in 1/6 degree resolution cell where the original serology data point belongs. This allows to fit the serology data points as point data.

fitted_sero_cell_to_adm(join_all, sqr_dataset_2, fld_1, fld_2)

Arguments

join_all

dataframe of foi estimates and predictions at admin unit 1 resolution.

sqr_dataset_2

dataframe of foi estimates and predictions at 1/6 degree resolution.

fld_1

character strings of variables (columns names)

fld_2

character strings of variables (columns names)

Value

a joined dataframe