validate_input {DOSPortfolio} | R Documentation |
Validates input to the DOSPortfolio function.
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
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
|
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