R/RelativeWeights.R

Defines functions relativeWeights

Documented in relativeWeights

relativeWeights = function(price, index.weights) {
  relative_weights = (price * index.weights) / sum(price * index.weights)
  return(relative_weights)
}

Try the IndexConstruction package in your browser

Any scripts or data that you put into this service are public.

IndexConstruction documentation built on July 1, 2020, 6:07 p.m.