程式語言:R
library("quantmod")
library("financial")
https://github.com/z-Wind/portfolioReturn
功能:計算年度報酬率
呈現結果如下圖
依其資產配置更改
symbol = c("VTI","VBR","VPL","VGK","VWO","BND","BWX","VNQ")
ratio = c(0.15,0.0375,0.1875,0.1875,0.1875,0.06,0.14,0.05)
library("quantmod")
library("financial")
https://github.com/z-Wind/portfolioReturn
功能:計算年度報酬率
呈現結果如下圖
依其資產配置更改
symbol = c("VTI","VBR","VPL","VGK","VWO","BND","BWX","VNQ")
ratio = c(0.15,0.0375,0.1875,0.1875,0.1875,0.06,0.14,0.05)
留言
張貼留言