Skip to content

Commit

Permalink
initial code commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jraffa committed Aug 23, 2020
1 parent 80b338a commit 8285334
Show file tree
Hide file tree
Showing 34 changed files with 2,532 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Package: rGOSSIS1
Type: Package
Title: GOSSIS: Global Open Source Severity of Illness Scale
Version: 0.1.0
Author: Jesse D. Raffa
Maintainer: Jesse D. Raffa <[email protected]>
Description: Global Open Source Severity of Illness Scale imputation and prediction code.
License: MIT
Encoding: UTF-8
LazyData: true
Imports: dplyr,
caret,
stringr
RoxygenNote: 6.1.1
13 changes: 13 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generated by roxygen2: do not edit by hand

export(generate_formula)
export(gpredict)
export(impute_data)
export(prepare_fit)
export(preprocess_data)
import(caret)
import(dplyr)
import(mgcv)
import(stringr)
importFrom(stats,na.pass)
importFrom(stringr,str_split)
14 changes: 14 additions & 0 deletions R/ap_dx.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#' APACHE Diagnosis Map Dataset
#'
#' A mapping table used to map different kinds of admission diagnoses in a hiearchical structure.
#'
#' @docType data
#' @usage data(ap_dx)
#'
#' @format An R data.frame
#'
#' @keywords datasets
#'
#' @example
#' data(ap_dx)
"ap_dx"
242 changes: 242 additions & 0 deletions R/complete_levels.R

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions R/gossis1_ihmp.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#' GOSSIS prediction model datasets
#'
#' A `gam` model with some elements stripped used in GOSSIS in-hospital mortality prediction.
#'
#' @docType data
#' @usage data(gossis1_ihmp)
#'
#' @format An R data.frame
#'
#' @keywords datasets
#' @seealso gpredict
#' @example
#' # data(gossis1_ihmp)
"gossis1_ihmp"
14 changes: 14 additions & 0 deletions R/imputation_models.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#' GOSSIS imputation model datasets
#'
#' A named list of imputation models used for GOSSIS.
#'
#' @docType data
#' @usage data(imputation_models)
#'
#' @format An R data.frame
#'
#' @keywords datasets
#' @seealso imputate_data
#' @example
#' # data(imputation_models)
"imputation_models"
14 changes: 14 additions & 0 deletions R/imputation_models_fac.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#' GOSSIS imputation model datasets (factors variables only).
#'
#' A named list of imputation models used for GOSSIS (factors variables only).
#'
#' @docType data
#' @usage data(imputation_models)
#'
#' @format An R data.frame
#'
#' @keywords datasets
#' @seealso imputate_data
#' @example
#' # data(imputation_models_fac)
"imputation_models_fac"
Loading

0 comments on commit 8285334

Please sign in to comment.