Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Control the number of cases generated #19

Open
stephaneghozzi opened this issue Jan 12, 2021 · 1 comment
Open

[R] Control the number of cases generated #19

stephaneghozzi opened this issue Jan 12, 2021 · 1 comment
Assignees

Comments

@stephaneghozzi
Copy link
Collaborator

At the moment the number of cases generated is exactly the number of cases officially reported. However it would be interesting to tweak that number, especially for testing purposes.

One simple way of doing it is to multiply all case numbers by an integer (for each dimension: county, age, sex, with or without symptom, etc.).

(At the moment multiplying by a real number and then rounding would cause a problem when matching the two data sources: RKI's corona dashboard and RKI's SurvStat.)

@stephaneghozzi stephaneghozzi self-assigned this Jan 12, 2021
@stephaneghozzi
Copy link
Collaborator Author

stephaneghozzi commented Jan 12, 2021

Multiplying by an integer only allows to increase the case number.

To decrease it the clean solution would be to first generate the data and then to (randomly) select the desired number of cases and remove all contacts and events (but see remark below) not linked to the cases retained. This means to different processes for increasing or decreasing the case number... To be discussed, this is not necessarily a problem.

N.B. At the moment all contacts and events are linked to at least one case. However SORMAS allows more flexibility, events can be recorded without a case having participated. That constrained could be removed from the data generator but that should be a specific issue/requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant