epiforecasts / socialmixr

R package for deriving social mixing matrices from survey data.
http://epiforecasts.io/socialmixr/
Other
38 stars 11 forks source link

numeric artefact in symmetric matrices when sub-groups are unbalanced #146

Closed lwillem closed 1 week ago

lwillem commented 4 weeks ago

Included a warning when the normalization weights to obtain a symmetric matrix exceed a threshold (default 2), as this can cause unexpected inflation or deflation of the contact rates. The root of this issue lies in sparse data and unbalanced sub-groups.

See #145