Skip to content
Prev 14315 / 15274 Next

Return.portfolio issue

Hi,

So if all the assets are shorted in one period and sum of the weights
equals -1 (as was the case in my example but hidden columns), the dummy
variable's weight is 2?

Thanks,

Nicolas
On 29 May 2017 16:10, "Ilya Kipnis" <ilya.kipnis at gmail.com> wrote:
Weights need to sum to 1 at every period. Create a dummy asset with return
of 0 and assign it a weight of 1 - rowSum(weights) and things will work.

On Mon, May 29, 2017 at 5:49 AM, Brian G. Peterson <brian at braverock.com>
wrote:
_______________________________________________
R-SIG-Finance at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions
should go.