R/cctr.Bayes.R

Defines functions cctr.Bayes

Documented in cctr.Bayes

cctr.Bayes <- function(tickers, weights = rep(1,length(tickers)),
                       start, end, data, sim.size = 1000){
  w <- weights/sum(weights)
  cctr.sim <- w*mctr.Bayes(tickers, w, start, end, data, sim.size)
  return(cctr.sim)
}

Try the PortRisk package in your browser

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

PortRisk documentation built on May 2, 2019, 7:22 a.m.