Skip to content

Commit

Permalink
Rephrase definitions of p_geo and p_trust
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiemeakin committed Aug 23, 2022
1 parent 17f959f commit ee158e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/create_public_mapping.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Mappings are derived from a raw mapping provided by NHS England, based on the Se
1. Map NHS sites to NHS Trusts.
2. Count the number of hospital spells for each LTLA-Trust (or UTLA-Trust) pair.
3. Exclude any LTLA-Trust (or UTLA-Trust) pairs for which the number of hospital spells is fewer than 10.
4. Calculate (ii) `p_geo`, the proportion of all admissions from a given LTLA (or UTLA) to a given Trust, and (ii) `p_trust`, the proportion of all admissions to a given Trust that are from a given LTLA (or UTLA).
4. Calculate (i) `p_geo`, the proportion of all admissions from a given LTLA (or UTLA) that were admitted to a given Trust, and (ii) `p_trust`, the proportion of all admissions to a given Trust that were admitted from a given LTLA (or UTLA).

## Linked COVID-19 cases and admissions

Expand All @@ -43,4 +43,4 @@ Mappings are derived from COVID-19 cases and hospital admissions linelist data l
5. Amongst all remaining matches, keep the first admission of each case only.
6. Count the number of linked case-admissions for each LTLA-Trust (or UTLA-Trust) combination.
7. Exclude any LTLA-Trust (or UTLA-Trust) pairs for which the number of hospital spells is fewer than 10.
8. Calculate (ii) `p_geo`, the proportion of all admissions from a given LTLA (or UTLA) to a given Trust, and (ii) `p_trust`, the proportion of all admissions to a given Trust that are from a given LTLA (or UTLA).
8. Calculate (i) `p_geo`, the proportion of all admissions from a given LTLA (or UTLA) that were admitted to a given Trust, and (ii) `p_trust`, the proportion of all admissions to a given Trust that were admitted from a given LTLA (or UTLA).

0 comments on commit ee158e5

Please sign in to comment.