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

Data check subj 0017 #4

Open
gabrielodom opened this issue Nov 14, 2023 · 0 comments
Open

Data check subj 0017 #4

gabrielodom opened this issue Nov 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gabrielodom
Copy link
Contributor

For subject 0017, we have an imputed visit the day before a positive UDS.

public.ctn0094data::all_drugs %>%
  filter(who == 17) %>%
  filter(when >= 40 & when <= 50)
# A tibble: 9 × 4
    who what           source  when
  <int> <fct>          <fct>  <dbl>
1    17 Heroin         TFB       40
2    17 Benzodiazepine UDSAB     45
3    17 Heroin         TFB       45
4    17 Methadone      UDSAB     45
5    17 Opioid         UDSAB     45
6    17 Thc            UDSAB     45
7    17 Thc            TFB       46
8    17 Methadone      UDSAB     49
9    17 Opioid         UDSAB     49
derived_visitImputed %>% filter(who == 17)
# A tibble: 25 × 3
     who  when visitImputed
   <int> <dbl> <chr>   
...
 6    17    35 Present     
 7    17    44 Present     
 8    17    49 Present     
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant