[R] portfolio, portfolio.optim function not found

Jean-Christophe BOUËTTÉ jcbouette at gmail.com
Thu Sep 15 03:31:13 CEST 2011


portfolio.optim {tseries} means this function is in the tseries package...

2011/9/14 James Splinter <james.r.splinter at gmail.com>:
> Hello,
>
> After installing and loading the package "portfolio", I tried to run the
> example code provided, and it would not run.
>
> this is the link:
> http://rss.acs.unt.edu/Rdoc/library/tseries/html/portfolio.optim.html
>
> this is the example code, as found at the link:
>
> x <- rnorm(1000)
> dim(x) <- c(500,2)
> res <- portfolio.optim(x)
> res$pw
>
> the error I get is:
>
> Error: could not find function "portfolio.optim"
>
> Any thoughts on how this could be?
>
>
> Thanks
>
> James Splinter
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list