Skip to content

Conversation

@NickCEBM
Copy link
Contributor

Initial try at changes to query to account for trials that were ongoing as of the date of Brexit and are now in status: 'GB - no longer in EU/EEA'

To account for this we:

  1. Created a new trial status variable called gb_exclude
  2. Fixed the categorical variable for trial status so that now if a trial is completed in all locations other than GB - no longer in EU/EEA it is considered completed and added a category for trials that are only in trial status GB - no longer in EU/EEA
  3. This is now accounted for when we check for results_expected. A trial that is only in status GB - no longer in EU/EEA will no longer become due ever. A trial with GB - no longer in EU/EEA and all other completed/terminated trials will become due by the normal procedure.
  4. Added a new binary variable to the final dataset called brexit_excluded that is for trails that are only in the GB - no longer in EU/EEA status.

Initial try at changes to query to account for trials that were ongoing as of the date of Brexit and are now in status: 'GB - no longer in EU/EEA'

To account for this we:
1. Created a new trial status variable called `gb_exclude`
2. Fixed the categorical variable for trial status so that now if a trial is completed in all locations other than `GB - no longer in EU/EEA` it is considered completed and added a category for trials that are only in trial status `GB - no longer in EU/EEA`
3. This is now accounted for when we check for `results_expected`. A trial that is only in status `GB - no longer in EU/EEA`  will no longer become due ever. A trial with `GB - no longer in EU/EEA`  and all other completed/terminated trials will become due by the normal procedure.
4. Added a new binary variable to the final dataset called `brexit_excluded` that is for trails that are only in the `GB - no longer in EU/EEA` status.
@NickCEBM
Copy link
Contributor Author

NickCEBM commented Jan 11, 2021

Failing tests because 'brexit_excluded has been added as a new field. This field will help us label these trials on the actual EU TT.

Edit: Attempted to address this through the below commit.

Edit: aaaaand it didn't work...

@NickCEBM
Copy link
Contributor Author

Have only changed opentrials-to-csv.sql at this time. Have not carried through the changes to opentrials-to-paper-csv.sql. This creates the slightly different dataset that we would run the STATA for the paper against.

Ideally I'd like to just replace everything with some python I've created in the long run.

Adding new column `brexit_excluded` so the tests can potentially pass
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

Successfully merging this pull request may close these issues.

2 participants