View source: R/gpt_annot_class.R
gpt_annot_class | R Documentation |
Convert severity annotations ot severity classes (profound > severe > moderate > mild) to approximate those introduced in Lazarin et al. 2014.
gpt_annot_class(
res_coded = gpt_annot_codify(),
inclusion_values = c(2, 3),
tiers_dict = list(death = 1, intellectual_disability = 1, impaired_mobility = 2,
physical_malformations = 2, blindness = 3, sensory_impairments = 3, immunodeficiency
= 3, cancer = 3, reduced_fertility = 4),
add_severity_score_gpt = TRUE
)
res_coded |
The output of list gpt_annot_codify. |
inclusion_values |
Numerically encoded annotation values
to count as hits. See the |
tiers_dict |
A named list of severity tiers. |
add_severity_score_gpt |
Whether to add a continuous severity score as well. |
A data.table with severity classes, as well as severity scores (0-100) which can be used to rank severity within each class.
res_coded <- gpt_annot_codify()
res_class <- gpt_annot_class(res_coded)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.