Learn R Programming

DecisionAnalysis (version 1.1.0)

SAVF_categorical_score: Single Attribute Value Function (SAVF) Categorical Score

Description

: Calculates the Single Attribute Value Function (SAVF) score for a categorical value.

Usage

SAVF_categorical_score(x, categories, weights)

Arguments

x

Attribute raw value

categories

Vector of categories

weights

Numeric vector of category weights

Value

Categorical SAVF Score

Examples

Run this code
# NOT RUN {
SAVF_categorical_score("Tom", c("Tom", "Bill" ,"Jerry"), c(0.1, 0.25, 0.65))

# }

Run the code above in your browser using DataLab