Create a custom score definition for use with compute_scores
Usage
create_score_definition(
name,
columns,
weights = NULL,
type = c("continuous", "discrete"),
threshold = NULL,
normalization = c("normalized", "raw")
)
Arguments
- name
Score name
- columns
Vector of program names to include in score
- weights
Optional vector of weights (default: all 1s)
- type
Score type: "continuous" or "discrete"
- threshold
Threshold for discrete scores
- normalization
Use "normalized" or "raw" usage
Value
A score definition list
Examples
if (FALSE) { # \dontrun{
my_score <- create_score_definition(
name = "MyScore",
columns = c("GEP1", "GEP2", "GEP3"),
weights = c(1, 2, 1),
type = "continuous"
)
} # }