University College London
Browse
TEXT
Mh avoidable - multiple imputation.R (0.47 kB)
TEXT
MH avoidable data preparation.R (6.04 kB)
TEXT
MH bootstrap functions.R (0.73 kB)
TEXT
MH lasso prep functions.R (3.88 kB)
DATASET
MH_Avoidable.csv (439.34 kB)
TEXT
MIRL stages 2,3,4 - MHSDS patients - physical admissions.R (7.54 kB)
TEXT
MIRL stages 2,3,4 - No MHSDS - physical admissions.R (7.86 kB)
TEXT
Packages.R (0.09 kB)
TEXT
Potentially avoidable admissions - data and code.Rproj (0.21 kB)
DOCUMENT
READ ME.docx (27.31 kB)
TEXT
Sensitivity analysis 70 pct missing.R (8.87 kB)
TEXT
Sensitivity analysis.R (8.95 kB)
DATASET
Avoidable Admissions - List of variables.xlsx (13.93 kB)
DATASET
CCGs with fewer than 50pct missing.csv (0.63 kB)
DATASET
CCGs with fewer than 70pct missing.csv (0.89 kB)
TEXT
MH avoidable - fractional polynomials.R (4.05 kB)
1/0
16 files

Data supporting the article: Health system influences on potentially avoidable hospital admissions by secondary mental health service use: A national ecological study

dataset
posted on 2021-10-25, 15:57 authored by Charlotte Woodhead, Peter MartinPeter Martin, David OsbornDavid Osborn, Helen Barratt, Rosalind RaineRosalind Raine

These materials relate to the following publication:

Woodhead, C., Martin, P., Osborn, D., Barratt, H., & Raine, R. (2021). Health system influences on potentially avoidable hospital admissions by secondary mental health service use: A national ecological study. Journal of Health Services Research & Policy. https://journals.sagepub.com/doi/full/10.1177/13558196211036739


The materials are designed to enable independent researchers to reproduce the analyses presented in the section “Predictors of variation in CCG-level PAAs”. We are not permitted to share HES data and thus have not included data or code to reproduce the calculation of Potentially Avoidable Admission (PAA) rates. Only the prediction of PAA rates by CCG characteristics is covered in the code presented.

Data

· The main data set to be read into R is: “MH_Avoidable.csv”

· Explanation of variables in: “Avoidable Admissions - List of variables.xlsx”

· Lists of CCG identifiers that completeness thresholds for diagnostic information in the MHSDS data set (for sensitivity analyses) are:

o “CCGs with fewer than 50pct missing.csv”

o “CCGs with fewer than 70pct missing.csv”

R code

To run R code, first open the R Studio project “Potentially avoidable admissions - data and code.Rproj”.

· Code for implementing MIRL to investigate predictors of PAA rates:

o in secondary mental health service users: “MIRL stages 2,3,4 - MHSDS patients - physical admissions.R”

o in the comparator group: “MIRL stages 2,3,4 - No MHSDS - physical admissions.R”

· code for sensitivity analyses:

o “Sensitivity analysis.R”

o “Sensitivity analysis 70pct missing.R”

· code for fractional polynomials: “MH avoidable – fractional polynomials.R”

All other R code files contained within the project are called from within these five files via the source command.

History

Usage metrics

    University College London

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC