Description Usage Arguments Value Examples
Compute the traditional AUDIT-C score from Extended AUDIT-C data
1 2 3 4 5 | compute_auditc_score(
x,
audit_coefficients = default_coefficients,
zero_if_never_drinks = FALSE
)
|
x |
a data frame or matrix with three character columns containing, in order:
|
audit_coefficients |
a list of coefficients (default: |
zero_if_never_drinks |
a boolean indicating whether an AUDIT-C score of zero should be given by default if AUDIT-1 = 'Never'. Default is FALSE. |
a vector of AUDIT-C score between 0 and 12.
1 2 3 4 5 | compute_auditc_score(data.frame(list(
audit1_label = "2 to 3 times a week",
audit2_label = "1 to 2",
audit3_label = "Monthly"
)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.