Learn R Programming

RMOPI (version 1.1)

Risk Management and Optimization for Portfolio Investment

Description

Provides functions for risk management and portfolio investment of securities with practical tools for data processing and plotting. Moreover, it contains functions which perform the COS Method, an option pricing method based on the Fourier-cosine series (Fang, F. (2008) ).

Copy Link

Version

Install

install.packages('RMOPI')

Monthly Downloads

238

Version

1.1

License

GPL (>= 2)

Maintainer

Wei Ling

Last Published

August 22nd, 2022

Functions in RMOPI (1.1)

InvestmentPortfolio

Construct Portfolio
F_k

F_k Coefficients
CosValueOption

Approximate the Option Price with the COS Method
NormChf

The Characteristic Function of Normal Distribution
Describe

Summary Statistics
PdfMultiPlot

Plot the Probability Density Functions
V_k

V_k Series
StackForPlot

Rearrange the data from LogErrorCosPdf for plot
FixBacktest

Buy and Hold Backtest
StackRet

Stack Rets for ggplot
ggacf

Plot the Acf Figure
VaRSimTest

VaR Calculation and Coverage Test
rGarcha

Simulate a Garch Series
rGbm

Simulate prices series of stocks
CosPdfMulti

Distribution Recovery with the COS method for Different parameters
PdfSinglePlot

Plot the Probability Density Function
CosPdfRecovery

Distribution Recovery with the COS method
rMvReturnSim

Simulate Stocks Prices
rTrade

Simulate stock trade data
Sharp

Calculate Sharp Ratio with stock prices
StNormChf

The Characteristic Function of Standard Normal Distribution
rGbmSingle

Simulate a single stock price series
gghistplot

Plot the Histogram Figure
gglineplot

Plot the Time Series
ggboxplot

Plot the Box Figure
rTrades

Simulate Multivariate Stock Trade Data
rGbms

Simulate Multivariate Stocks Prices Data
ggpacf

Plot the Pacf Figure
RiskIndicators

Calculate Useful Indicators for returns
rGarch

Simulate a Garch Series
EuroCallOption

The Value Function of European Call Option
DescribeVector

Summary Statistics of Vector
LogErrorCosPdf

Calculate the Absolute Error of the COS Method