[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The problem is that the original dataset does not list holdings or size zero. Consequence: If a fund held say 500 units of an asset and then sold all of these, the respective fund-asset-period observation for the next period does not exist, so when I compute the flow I get a missing observation, although it should say flow=-500. Analogously, if the fund has bought 500 units of an assets after previously holdings of zero, I would like to have Stata tell me that the flow equals +500, but instead it will tell me that the flow is missing. So I figured the best thing to do, to be on the safe side, would be to make sure that for each fund-asset pair I have observations on all periods, rather than just on those for which holdings were listed. In upshot: My data are currently in long form, with each observation being a unique fund-asset-period triple. However, for each fund-asset pair I have observations on some but not all of up to 60 periods. The question is: How can I add observations such that for each pair there is an observation on each of the 60 periods (some of which may only have missing values, but they need to be listed)? Many thanks for your help! Chris * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

- Prev by Date:
**st: For each fund-asset pair I have observations on some periods, and want have them on each possible period...** - Next by Date:
**st: AW: For each fund-asset pair I have observations on some periods, and want have them on each possible period...** - Previous by thread:
**st: For each fund-asset pair I have observations on some periods, and want have them on each possible period...** - Next by thread:
**st: Adding a Reference Point to a -tabplot- Graph** - Index(es):

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