Rmetrics - fPortfolio - portfolioFrontier function

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Rmetrics - fPortfolio - portfolioFrontier function

Josh Chien-2
Dear R-Finance,
I just try to do portfolio analysis by using Rmetrics-fPortfolio. But, on some timeseries, there is error at below.
Below, it's my R code (Attached is the timeseries data)
Ret_ts <- as.timeSeries(RollingData)

EffFrontier <- portfolioFrontier(Ret_ts, constraints ="LongOnly")
 Error in `colnames<-`(`*tmp*`, value = names(getMu(Data))) :
  attempt to set 'colnames' on an object with less than two dimensions
From my observation, it's related with timeseries data because most of timeseries periods works well.
Only some periods will force be stop and get this error message. Google above error message.
It has been raised in several years ago. Someone thought it might come from "setNFrontierPoints". I tried this way and it can't work.
I adjusted others parameters, constraints. It still is the same error. Unfortunately, I didn't get solution by self and don't know how to debug.
Now, I raise this problem again. wish this issue could be here again and someone can figure out.
Thanks for R-community.
Josh Chien
Sent from Postbox

[hidden email] mailing list
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.

check_ts.RData (45K) Download Attachment