Description Usage Arguments Value Examples
View source: R/calculate-rsi.R
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.
1 | sessler_get_single_beta(code, betalist)
|
code |
A single ICD-9-CM code |
betalist |
One of the rsi_beta_* datasets (supplied with this package) |
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)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.