calculate_score_patients {miRetrieve} | R Documentation |
Calculate patients scores for abstracts
Description
Calculate patients score for each abstract to indicate possible use of patient material.
Usage
calculate_score_patients(
df,
keywords = patients_keywords,
case = FALSE,
threshold = NULL,
indicate = FALSE,
discard = FALSE,
col.abstract = Abstract
)
Arguments
df |
Data frame containing abstracts. |
keywords |
Character vector. Vector containing keywords. The score is
calculated based on these keywords. How much weight a keyword in |
case |
Boolean. If |
threshold |
Integer. Optional. Threshold to decide if use of patient tissue is
present in an abstract or not. If |
indicate |
Boolean. If |
discard |
Boolean. If |
col.abstract |
Symbol. Column containing abstracts. |
Details
Calculate patient score for each abstract to indicate possible
use of patient material. This score is added to the data frame as an additional
column Patient_score
, containing the calculated patients score.
To decide which abstracts are considered to contain patient material, a threshold
can be set via the threshold
argument. Furthermore, an additional
column can be added, verbally indicating the general use of patient material.
Choosing the right threshold can be facilitated using plot_score_patients()
.
Value
Data frame with calculated patient scores.
If discard = FALSE
, adds extra columns
to the original data frame with the calculated patient tissue scores.
If discard = TRUE
, only abstracts with use of patient tissue
are kept.
See Also
Other score functions:
assign_topic()
,
calculate_score_animals()
,
calculate_score_biomarker()
,
calculate_score_topic()
,
plot_score_animals()
,
plot_score_biomarker()
,
plot_score_patients()
,
plot_score_topic()