Closed elsie-h closed 1 year ago
Happy with this, all works and makes sense. Two minor things:
person_count = n()
) to verify with numbers elsewhere and have them available in case we later need to calculate percentages, mean follow-up, etc. Thanks - good points - I've incorporated both changes in this commit.
The code below (lines 690-755 in this script) is intended to extract the information to fill in the following sentences relating to the single trial approach:
Vaccination after a positive test was rare, occurring in xxx and xxx people who received BNT162b2 and ChAdOx1 respectively and in only xxx and xxx people respectively within 28 days after a positive test).
In the single trial cohort there were xxx person-years of follow-up (xxx while unvaccinated); during this time there were xxx positive tests (xxx while unvaccinated), xxx COVID-19 hospitalisations (xxx), and xxx deaths (xxx).
I'll email you the dummy data file to save you running everything (derived here, email because GitHub does not support
.rds
files).