Git Product home page Git Product logo

hsrc's Introduction

HSRC

Some functions to calculate perioperative morbidity and mortality risk.

At the moment this package contains functions to calculate:

  1. P-POSSUM (Portsmouth Physiological and Operative Severity Score for the enUmeration of Mortality and morbidity)
  2. SRS (Surgical Risk Score)
  3. SORT (Surgical Outcome Risk Tool)

The package also contains data used in the analysis in the published paper Wong DJN, Popham S, Wilson AM, Barneto LM, Lindsay HA, Farmer L, et al. Postoperative critical care and high-acuity care provision in the United Kingdom, Australia, and New Zealand. British Journal of Anaesthesia. 2019; doi: 10.1016/j.bja.2018.12.026

The data consists of 3 data frames, and were collected from the SNAP-2: EPICCS Organisational Survey:

  1. Org_Survey_Data_Site: The attributes of 309 hospitals in UK, Australia and New Zealand, consisting of 39 variables.
  2. Org_Survey_Data_CCU: The attributes of 460 critical care units in UK, Australia and New Zealand, consiting of 9 variables.
  3. Org_Survey_Data_Enhanced: The attributes of 147 high-acuity care units in UK, Australia and New Zealand, consisting of 14 variables.

To install

Currently the package is not on CRAN. To install it for use within R:

  1. Install the devtools package. You can do this from CRAN. Invoke R and then type
install.packages("devtools")
  1. Load the devtools package, and use the install_github() function:
library(devtools)
install_github("dannyjnwong/HSRC")

To use

  1. After installing, load the package:
library(HSRC)
  1. There are 3 functions gen.POSSUM, gen.SORT and gen.SRS. To learn more about each function type:
?gen.POSSUM
?gen.SORT
?gen.SRS
  1. To work with data from the SNAP-2: EPICCS Organisational Survey:
# Find out more information about each dataset and their variables:
?Org_Survey_Data_Site
?Org_Survey_Data_CCU
?Org_Survey_Data_Enhanced

# Assign a dataset to a named dataframe:
hospitals <- Org_Survey_Data_Site
critcare <- Org_Survey_Data_CCU
enhancedcare <- Org_Survey_Data_Enhanced

hsrc's People

Contributors

dannyjnwong avatar

Stargazers

Arun avatar

Watchers

 avatar Arun avatar

hsrc's Issues

Age Category Split

As discussed by email. The cut-function (line 58 of gen.SORT) will give an incorrect categorisation by age if ages are not integers. (Original SNAP2 data were integers I believe, so cut doesn't get asked to deal with people age 64-64.9 or 79-79.9.)
...
mutate(AgeCat = cut(as.numeric(.data$Age), breaks = c(0,64,79, Inf))) %>%
...

Suggest:
...
cut(AgeCat = cut(as.numeric(.data$Age), breaks = c(0, 65, 80, Inf), right = FALSE)
...
The AgeCat labels would then change, so need revising as well.

[65,80) is >=65 and < 80

I think the gen.POSSUM approach needs checking too (?needs right = FALSE)

mutate(AgeCat = cut(.data$Age, breaks = c(0,60,70, Inf)))

Only suggestions!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.