Giter Club home page Giter Club logo

pccc's Introduction

pccc

Pediatric Complex Chronic Conditions: A R Package

Project Status: Active โ€“ The project has reached a stable, usable state and is being actively developed. Build Status Coverage Status CRAN_Status_Badge

Motivation

Version 2 of the Pediatric Complex Chronic Conditions (CCC) system was published "Pediatric complex chronic conditions classification system version 2: updated for ICD-10 and complex medical technology dependence and transplantation" by Chris Feudtner, James A Feinstein, Wenjun Zhong, Matt Hall and Dingwei Dai.

SAS and STATA scripts to generate CCC categories from ICD codes were provided by Feudtner et al. as an appendix to the above manuscript. However, those scripts can take many hours to run on large datasets.

This package provides R functions to generate the CCC categories. Because the R functions are built with a C++ back-end, they are very computationally efficient.

Testing and Benchmarking

The PCCC package uses the R library testthat for unit tests. All tests are automatically run upon running the devtools::install_github() command shown below.

Some additional tests on large datasets were developed by Peter DeWitt and are available at https://github.com/CUD2V/pccc-testing. As 2 of the 3 require special license agreements for data access, they are not included with this repository.

Installation

From CRAN

Version 1.0.2 is available on The Comprehensive R Archive Network at https://CRAN.R-project.org/package=pccc.

Developmental version

You can install the developmental version of pccc directly from github using the devtools package:

if (!("devtools" %in% rownames(installed.packages()))) {
  warning("installing devtools from https://cran.rstudio.com")
  install.packages("devtools", repo = "https://cran.rstudio.com")
}

devtools::install_github("CUD2V/pccc", build_vignettes = TRUE)

NOTE: If you are working on a Windows machine you will need to download and install Rtools before devtools will work for you.

If you are on a Linux machine or have GNU make configured you should be able to build and install this package by cloning the repository and running

make install

Steps to prepare for release of new version on CRAN

First update all packages that pccc depends on.

Then run the following:

devtools::build()
devtools::install()
devtools::test()
devtools::check()

If all of the above are successful, then commit changes and verify CI builds have succeeded at https://travis-ci.org/github/CUD2V/pccc

Next, check to see if there are any dependencies on pccc:

devtools::revdep('pccc')

Then, do the following:

devtools::check_win_release()
devtools::check_win_devel()
devtools::check_win_oldrelease()

devtools::check_rhub()

Note: As of May 2020, R-hub Windows server requries some custom configuration:

rhub::check(
  platform="windows-x86_64-devel",
  env_vars=c(R_COMPILE_AND_INSTALL_PACKAGES = "always")
)

If datafiles used for tests are updated, use this to check compression and potentially shrink file size:

tools::checkRdaFiles('./data')
tools::resaveRdaFiles('./data')

pccc's People

Contributors

magic-lantern avatar dewittpe avatar tdbennett avatar stephenrho avatar ck2136 avatar

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.