rss: Calculate residual sums of squares for weights and desired...

Description Usage Arguments

View source: R/invest.R

Description

Calculate residual sums of squares for weights and desired weights

Usage

1
rss(inv_weights, desired_dist, total, current)

Arguments

inv_weights

a vector of weights. Should be missing the first weight.

desired_dist

the desired weights. Should be one longer than inv_weights.

total

total amount to invest

current

amounts invested in the assets


seananderson/spudr documentation built on May 29, 2019, 4:26 p.m.