Skip to content

Commit 112503a

Browse files
committed
more updates to pass CRAN check, mostly URL edits
1 parent 4ea3a38 commit 112503a

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Authors@R: c(
1616
person(given="Xiaokang",family="Feng",role="ctb") ,
1717
person(given="Yifu",family="Kang",role="ctb") )
1818
Version: 2.1.1
19-
Date: 2026-01-27
19+
Date: 2026-02-02
2020
Maintainer: Brian G. Peterson <brian@braverock.com>
2121
Description: Portfolio optimization and analysis routines and graphics.
2222
Depends:
@@ -64,5 +64,5 @@ Imports:
6464
License: GPL-3
6565
URL: https://github.com/braverock/PortfolioAnalytics
6666
Copyright: (c) 2004-2026
67-
RoxygenNote: 7.3.2
67+
RoxygenNote: 7.3.3
6868
Encoding: UTF-8

vignettes/PA.bib

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ @ARTICLE{Boudt2014
438438
title = {Higher Order Comoments of Multifactor Models and Asset Allocation},
439439
month = {June},
440440
year = {2014},
441-
url = {http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2409603}
441+
url = {https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2409603}
442442
}
443443

444444
@ARTICLE{Meucci2008,
@@ -449,7 +449,7 @@ @ARTICLE{Meucci2008
449449
volume = {21},
450450
pages = {97-102},
451451
number = {10},
452-
url = {http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1213325}
452+
url = {https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1213325}
453453
}
454454

455455
@ARTICLE{MeucciBL2008,
@@ -458,7 +458,7 @@ @ARTICLE{MeucciBL2008
458458
journal = {Journal of Risk},
459459
month = {August},
460460
year = {2008},
461-
url = {http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1117574}
461+
url = {https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1117574}
462462
}
463463

464464
@article{rockafellar2000optimization,

vignettes/cvxrPortfolioAnalytics.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Sys.setlocale("LC_TIME", "English")
2626
# 1 Introduction
2727
CVXR is an R package that provides an object-oriented modeling language for convex optimization, including the Second-Order Cone (SOCP) Optimization required to minimize Coherent Second Moment(CSM) problem, which is not supported by other solvers in PortfolioAnalytics. Hence, CVXR is a significant extension of PortfolioAnalytics.
2828

29-
The purpose of this vignette is to demonstrate examples of optimization problems that can be solved in PortfolioAnalytics with CVXR and its many supported solvers. The problem types covered include not only Linear Programming(LP), Quadratic Programming(QP) but also Second-Order Cone Programming(SOCP). Multiple solvers supported by CVXR can be selected according to optimization types. For example, SCS and ECOS can completely cover the types of problems that ROI can deal with, such as mean-variance and ES problem. In order to better understand the functionality and use of PortfolioAnalytics, users are recommended to read the Vignette [*Introduction to PortfolioAnalytics*](https://cran.r-project.org/web/packages/PortfolioAnalytics/vignettes/portfolio_vignette.pdf) first.
29+
The purpose of this vignette is to demonstrate examples of optimization problems that can be solved in PortfolioAnalytics with CVXR and its many supported solvers. The problem types covered include not only Linear Programming(LP), Quadratic Programming(QP) but also Second-Order Cone Programming(SOCP). Multiple solvers supported by CVXR can be selected according to optimization types. For example, SCS and ECOS can completely cover the types of problems that ROI can deal with, such as mean-variance and ES problem. In order to better understand the functionality and use of PortfolioAnalytics, users are recommended to read the Vignette [*Introduction to PortfolioAnalytics*](https://cran.r-project.orgpackage=PortfolioAnalytics/vignettes/portfolio_vignette.pdf) first.
3030

3131
The R code `demo_cvxrPortfolioAnalytics.R` in the PortfolioAnalytics `demo` folder, reproduces the results in this Vignette.
3232

@@ -105,7 +105,7 @@ Fig 2.1 EDHEC hedge fund style indexes returns from November 2014 to November 2
105105
\end{center}
106106

107107
## 2.4 Optimization Problems
108-
In this Vignette, all mean vectors and covariance matrices in the optimization formula will use standard sample based estimates. All optimization problems treated will use linear constraints unless stated otherwise. There will be one equality constraint, i.e., the full-investment constraint, and one or more inequality constraints such as the long-only and box constraints. More comprehensive constraint types can be found in Ross Bennett (2018) [*Introduction to PortfolioAnalytics*](https://cran.r-project.org/web/packages/PortfolioAnalytics/vignettes/portfolio_vignette.pdf).
108+
In this Vignette, all mean vectors and covariance matrices in the optimization formula will use standard sample based estimates. All optimization problems treated will use linear constraints unless stated otherwise. There will be one equality constraint, i.e., the full-investment constraint, and one or more inequality constraints such as the long-only and box constraints. More comprehensive constraint types can be found in Ross Bennett (2018) [*Introduction to PortfolioAnalytics*](https://cran.r-project.orgpackage=PortfolioAnalytics/vignettes/portfolio_vignette.pdf).
109109

110110
# 3 Maximizing Mean Return
111111
The objective to maximize mean return is a linear problem of the form:
5.48 KB
Binary file not shown.

vignettes/portfolio_vignette.Rnw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ summary(pspec)
319319
The PortfolioAnalytics package currently supports random portfolios, DEoptim, pso, GenSA, and ROI as back ends. Note that some of the QP/LP problems are solved directly with Rglpk and quadprog. The solver can be specified with the \code{optimize\_method} argument in \code{optimize.portfolio} and \code{optimize.portfolio.rebalancing}.
320320

321321
\subsection{DEoptim}
322-
PortfolioAnalytics uses the \code{DEoptim} function from the R package \verb"DEoptim". Differential evolution is a stochastic global optimization algorithm. See \code{?DEoptim} and the references contained therein for more information. See also \href{https://cran.r-project.org/web/packages/DEoptim/vignettes/DEoptimPortfolioOptimization.pdf}{Large scale portfolio optimization with DEoptim}.
322+
PortfolioAnalytics uses the \code{DEoptim} function from the R package \verb"DEoptim". Differential evolution is a stochastic global optimization algorithm. See \code{?DEoptim} and the references contained therein for more information. See also \href{https://cran.r-project.org/package=DEoptim/vignettes/DEoptimPortfolioOptimization.pdf}{Large scale portfolio optimization with DEoptim}.
323323
\subsection{Random Portfolios}
324324
PortfolioAnalytics has three methods to generate random portfolios.
325325
\begin{enumerate}

vignettes/robustCovMatForPA.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following "custom" robust mean vector and covariance matrix estimator functi
4141
3. `custom.covRob.Mcd`, using the function `covMcd` in the robustbase package
4242
4. `custom.covRob.TSGS`, using the function `TSGS` in the GSE package.
4343

44-
The above "custom" functions were are made possible by existence of a very useful "custom moments" functionality in PortfolioAnalytics, which is described in the Vignette "Custom Moment and Objective Functions" by Ross Bennett (2018), available on CRAN at <https://cran.r-project.org/web/packages/PortfolioAnalytics/index.html>. In the context of a returns mean vector and covariance matrix, the latter are thought of as the moments of orders one and two, loosely speaking the "mean" and "variance".
44+
The above "custom" functions were are made possible by existence of a very useful "custom moments" functionality in PortfolioAnalytics, which is described in the Vignette "Custom Moment and Objective Functions" by Ross Bennett (2018), available on CRAN at <https://cran.r-project.org/package=PortfolioAnalytics/index.html>. In the context of a returns mean vector and covariance matrix, the latter are thought of as the moments of orders one and two, loosely speaking the "mean" and "variance".
4545

4646
It is important to keep in mind that the methods described herein for using robust covariance matrix estimators, implicitly including corresponding robust mean vector estimators, may be used for other important covariance matrix estimators, such as shrinkage covariance matrix estimators, and covariance matrix estimators for unequal asset returns histories.
4747

@@ -241,7 +241,7 @@ outCovRobRocke <- opt.outputMvo(opt, returns10, digits = 3, frequency = "weekly"
241241

242242
## Custom covRob.Mcd Estimator
243243

244-
This custom estimator is based on the *robustbase* package function `covMcd`, which is a highly developed and well-documented robust covariance matrix estimator. The *Mcd* in `covMcd` stands for *Minimum Covariance Determinant* (MCD). This robust covariance matrix estimator uses a sophisticated fast algorithm to search for ***h*** observations out of ***n*** whose classical covariance matrix has the smallest possible determinant. See @RousseeuwDriessen1999. Then the raw MCD estimates of location and scatter are computed based on the sample mean vector and sample covariance matrix of those ***h*** points. Then covMcd uses a "refinement step" to compute the final robust covariance matrix and mean vector. For more details concerning the covMcd function and its parameters, and its "fast" computation, please see the Reference Manual and the Vignette "covMcd-Generalizing the FastMCD" downloadable from the CRAN robustbase package at <https://cran.r-project.org/web/packages/robustbase/index.html>.
244+
This custom estimator is based on the *robustbase* package function `covMcd`, which is a highly developed and well-documented robust covariance matrix estimator. The *Mcd* in `covMcd` stands for *Minimum Covariance Determinant* (MCD). This robust covariance matrix estimator uses a sophisticated fast algorithm to search for ***h*** observations out of ***n*** whose classical covariance matrix has the smallest possible determinant. See @RousseeuwDriessen1999. Then the raw MCD estimates of location and scatter are computed based on the sample mean vector and sample covariance matrix of those ***h*** points. Then covMcd uses a "refinement step" to compute the final robust covariance matrix and mean vector. For more details concerning the covMcd function and its parameters, and its "fast" computation, please see the Reference Manual and the Vignette "covMcd-Generalizing the FastMCD" downloadable from the CRAN robustbase package at <https://cran.r-project.org/package=robustbase/index.html>.
245245

246246
Here is the custom.covRob.Mcd function:\
247247

@@ -552,7 +552,7 @@ opt <- optimize.portfolio(returns, pspec,
552552

553553
## A User Custom Function for covRobOGK in `robustbase`
554554

555-
The user function `covRobOGK` presented below computes portfolio assets pairwise robust covariance matrix estimates. This method was originally introduced by @GnanadesikanKettenring1972, and improved with an "orthogonalizing step" by @MaronnaZamar2002. For details, see the `covRobOGK` page in the robustbase Reference Manual at <https://cran.r-project.org/web/packages/robustbase/index.html>. Here is the user function based on the robustbase function `covOGK` with default argument values:\
555+
The user function `covRobOGK` presented below computes portfolio assets pairwise robust covariance matrix estimates. This method was originally introduced by @GnanadesikanKettenring1972, and improved with an "orthogonalizing step" by @MaronnaZamar2002. For details, see the `covRobOGK` page in the robustbase Reference Manual at <https://cran.r-project.org/package=robustbase/index.html>. Here is the user function based on the robustbase function `covOGK` with default argument values:\
556556

557557
```{r, eval = FALSE}
558558
user.covRob.OGK <- function(R){

vignettes/robustCovMatForPA.pdf

2.55 KB
Binary file not shown.

0 commit comments

Comments
 (0)