port_estim_naive_slim: Naive Portfolio Diversification II

Description Usage Arguments Value Examples

View source: R/port-optim.R

Description

Calculates the weights of a naive portfolio strategy.

Usage

1

Arguments

p

an integer, specifying the number of stocks.

Value

a vector of length p with the weights of the portfolio.

Examples

1
2
3
data(sp500_rets)
example_rets <- sp500_rets[,2:11]
port_estim_naive_slim(dim(example_rets)[2])

antshi/auxPort documentation built on Oct. 27, 2020, 1:16 p.m.