code_CDR: Assignment of CDR rating

Description Usage Arguments Value Examples

View source: R/code_CDR_user.R

Description

code_CDR adds a variable called "CDR" to a data set according to the scoring algorithm by Morris (1993).

Usage

1
code_CDR(df, id_name = "lopnr", deb = FALSE)

Arguments

df

a data frame

id_name

the name of the primary ID variable in the data set

deb

debug yes or no (will slow function down)

Value

a data frame

Examples

1
2
3
data("CDRexamples")
code_CDR(df = CDRexamples, id_name = "id", deb = FALSE)
code_CDR(df = CDRexamples, id_name = "id", deb = TRUE)

thebackman/CDRalg documentation built on May 23, 2019, 7:36 a.m.