sessler_get_single_beta: Returns the covariate coefficient for a particular diagnosis...

Description Usage Arguments Value Examples

View source: R/calculate-rsi.R

Description

Returns the covariate coefficient for a particular diagnosis or procedure code, along with the actual code that was found in the internal database of coefficients. If a child code is supplied but its parent is in the database, the coefficient for the parent will be returned, along with that parent code. For example, if D1231 is supplied but only D123 is available, D123 will be used. This is apparently how the SPSS sample code works.

Usage

1
sessler_get_single_beta(code, betalist)

Arguments

code

A single ICD-9-CM code

betalist

One of the rsi_beta_* datasets (supplied with this package)

Value

Covariate coefficient. You must sum all of these for a given patient and then subtract the appropriate population beta (e.g. rsi_beta_1yrpod$popbeta)

Examples

1
2
3
4
# get coefficient for hypercholesterolemia
sessler_get_single_beta('D2720', rsi_beta_inhosp)
# Also works with extra 0 on the end
sessler_get_single_beta('D27200', rsi_beta_inhosp)


medicalrisk documentation built on May 19, 2017, 3:52 p.m.
Search within the medicalrisk package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.