R/adjust_value.R

Defines functions .AdjustValue

.AdjustValue <- function(value, type) {
    switch(tolower(type),
           "bps"        = value * 1E-4,
           "percentage" = value * 1E-2,
           "value"      = value,
           stop("unknown type of value"))
}
gfunk0704/StochasticVolatility documentation built on Feb. 8, 2020, 10:04 a.m.