[R-SIG-Finance] [R-sig-finance] fPortfolio Constraints Question

Yohan Chalabi chalabi at phys.ethz.ch
Tue Jun 24 20:04:10 CEST 2008


>>>> "B" == berg <max.berger at edhec.com>
>>>> on Wed, 18 Jun 2008 15:16:44 -0700 (PDT)

   B> myEstimator <-
   B>     function(x, Spec = NULL, ...) list(
   B>     mu = c(asset1 = 0.1, asset2 = 0.08, asset3 = 0.08, asset4 = 0.045),
   B>     Sigma = cov(y))

I would say that your mu is not a good idea and that the optimization does
not converge to a solution.

try with mu = colMeans(x) and see if it works.

note you can use the R function "traceback()" and then play around in
debug() mode to find out where the problem is.

regards,
Yohan

-- 
PhD student
Swiss Federal Institute of Technology
Zurich

www.ethz.ch
www.rmetrics.org

NOTE:
Rmetrics Workshop: http://www.rmetrics.org/meielisalp.htm
June 29th - July 3rd Meielisalp, Lake Thune, Switzerland



More information about the R-SIG-Finance mailing list