Two functions for financial portfolio optimization by linear programming are provided. One function implements Benders decomposition algorithm and can be used for very large data sets. The other, applicable for moderate sample sizes, finds optimal portfolio which has the smallest distance to a given benchmark portfolio.

Provides a simple method to extract portions of a vector, matrix, or data.frame. 
    The relative portion size and the way the portion is selected can be chosen.

The functions are designed to find the efficient mean-variance frontier or 
 portfolio weights for static portfolio (called  Markowitz portfolio) analysis in resource 
 economics or nature conservation. Using the nonlinear programming solver ('Rsolnp'), 
 this package deals with the quadratic minimization of the variance-covariances without 
 shorting (i.e., non-negative portfolio weights) studied in Ando and Mallory (2012) 
 <doi:10.1073/pnas.1114653109>. See the examples, testing versions, and more details from: 
 <https://github.com/ysd2004/portn>.

Risk Attribution of a portfolio with Volatility Risk Analysis.

Designed to aid both academic researchers and asset managers in conducting factor based portfolio sorts.  
    Provides functionality to sort assets into portfolios for up to three factors via a conditional or unconditional sorting procedure.

Following Sommer (2022) <https://mediatum.ub.tum.de/1658240>
    portfolio level risk estimates (e.g. Value at Risk, Expected
    Shortfall) are estimated by modeling each asset univariately by an
    ARMA-GARCH model and then their cross dependence via a Vine Copula
    model in a rolling window fashion. One can even condition on
    variables/time series at certain quantile levels to stress test the
    risk measure estimates.

Win ratio approach to partially ordered data, such as multivariate ordinal 
  responses under product (consensus) or prioritized order. Two-sample tests and multiplicative
  regression models are implemented (Mao, 2024, under revision).