Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Creating missing values


From   "MA V" <[email protected]>
To   [email protected]
Subject   st: Creating missing values
Date   Thu, 09 Dec 2004 05:35:47 +0000

Hi,
My data is the following:

obs v1 v2
1 1 20
2 1 34
3 1 34
4 1 34
5 1 32
2 2 23
4 2 32
5 2 23
And I would like to make it look like:
obs v1 v2
1 1 20
2 1 34
3 1 34
4 1 34
5 1 32
1 2 .
2 2 23
3 2 .
4 2 32
5 2 23
How do I add the missing values? Note that I want to have the same number of observations for each v1.
Can you help me?
MA

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

*
* 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