-
Notifications
You must be signed in to change notification settings - Fork 58
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
Error in cohort method in export results from inside strategus #161
Comments
Yes, please send me the link with anything that can help me reproduce this error. I will need to debug this |
Some more context to the issue when I have tried to reproduce it:
It seems to be inside the |
You can debug inside the CohortMethodModule, right? (Strategus will output the code to start an R session inside the failing module) |
On further inspection the line in question is here. This appears to be occurring because the value of reproducible example:
When values in this column are 0 or NA, no issue occurs:
I'm unclear what the desired behaviour should be in this setting, but an In this case the cause of the |
The NaN is probably ultimately caused by the cohort being really small after matching, and therefore any number is probably too small to share without violating the min cell requirement. Do you know how big the comparator cohort after matching is in this case? My proposed solution is: if inferred size is NaN and minCellCount > 0, set the corresponding values in the results to NA (R) / NULL (SQL). (All these fields are nullable according to the data model) |
Log file shows "2024-03-15 13:44:50 [Main thread] FATAL tibble Can't assign rows with
toCensor
. x SubscripttoCensor
can't contain missing values. x It has missing values at locations 1, 2, 3, 4, 5, etc."@schuemie this is for an ASSURE project and I can share the link if helpful.
The text was updated successfully, but these errors were encountered: