Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Portfolio building


From   n j cox <[email protected]>
To   [email protected]
Subject   Re: st: Portfolio building
Date   Wed, 25 Jan 2006 11:24:20 +0000

Please do not send MIME/HTML to Statalist.
See http://www.stata.com/support/faqs/res/statalist.html#toask

Your problem sounds like a classic -collapse-. See http://www.stata.com/help.cgi?collapse or [D] collapse.

Nick
[email protected]

Andrei Simonov

I wonder if anyone have code (or pointers, or ideas) how to build
portfolio of returns.

Basically, I have a data in format

DATE COMPANYID PORTFOLIOID WEIGHT
RETURN0 RETURN1

I need to get

DATE PORTFOLIOID PRETURN0 PRETURN1

Where PRETURN0=weighted average of RETURN0, etc.

I looked through the web, but cannot find anything

* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index