validate_input: Validates input to the DOSPortfolio function.

Description Usage Arguments Value

View source: R/DOSPortfolio.R

Description

This function validates the assumptions made to derive the analytic formulas implemented in the different functions of the package. It is called for its side-effects.

Usage

1
2
3
4
5
6
7
validate_input(
  data,
  reallocation_points,
  target_portfolio,
  relative_loss,
  shrinkage_type
)

Arguments

data

an n by p matrix of asset returns. Columns represent different assets rows are observations, where n>p, containing, for instance, log-returns.

reallocation_points

a vector of reallocation points. The reallocation points determine when the holding portfolio should be reconstructed and its weights should be recomputed.

target_portfolio

a vector which determines the weights of the target portfolio used when the shrinkage estimator of the global minimum variance portfolio is constructed for the first time.

relative_loss

possibly a numeric or NULL. The initial value of the relative loss in the variance of the target portfolio. If its NULL, then it will be initialized with the first subsample and the function r0Strategy.

shrinkage_type

the type of shrinkage estimator to use. The two implemented approaches are "non-overlapping" and "overlapping".

Value

NULL, only called for its side effects


DOSPortfolio documentation built on Sept. 13, 2021, 9:09 a.m.