powered by
: Calculates the Single Attribute Value Function (SAVF) score for a categorical value.
SAVF_categorical_score(x, categories, weights)
Attribute raw value
Vector of categories
Numeric vector of category weights
Categorical SAVF Score
# 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