R/portvol.Bayes.R

Defines functions portvol.Bayes

Documented in portvol.Bayes

portvol.Bayes <- function(tickers, weights = rep(1,length(tickers)),
                          start, end, data, sim.size = 1000){
  cctr.sim <- cctr.Bayes(tickers, weights, start, end, data, sim.size)
  portvol.sim <- rowSums(cctr.sim)
  return(portvol.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.