Closed krivit closed 2 years ago
Thanks for reporting this - at the moment this isn't possible because it is assumed that wave
can identify the same participant being interviewed in repeated surveys. Here the main files don't have a wave
column and therefore it is conservatively assumed that this cannot be merged because we don't know which wave one particular set of survey days refers to:
https://github.com/epiforecasts/socialmixr/blob/b7afd5054a35c36d2e624158daf349249f650b6e/R/get_survey.r#L101
https://github.com/epiforecasts/socialmixr/blob/b7afd5054a35c36d2e624158daf349249f650b6e/R/get_survey.r#L145
It seems that in this particular data set participant IDs are unique across waves but I don't think it can be assumed that this is guaranteed for any survey. I'll need to think about how this could be addressed (and would welcome suggestions should you have any).
The workaround that we are currently using is to download the *_sday.csv
separately and join it with the participant and the contact tables by participant ID. I am not 100% sure this is the correct thing to do, but it at least seems to give sensible results.
This is using CRAN or GitHub
main
:Created on 2022-06-02 by the reprex package (v2.0.1)
Is it possible to obtain survey day and wave for each participant using the package?