Statalist The Stata Listserver


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

st: RE: Filling data


From   "Rodrigo Martell" <[email protected]>
To   <[email protected]>
Subject   st: RE: Filling data
Date   Tue, 27 Mar 2007 14:10:52 +1000

so you want to make gini2 = gini1 if gini2 is missing?
If so, try this:

replace gini2 = gini1 if gini2 == .



Rodrigo Martell

 <http://www.frontier-economics.com> 	
Frontier Economics Pty. Ltd.
395 Collins Street
Melbourne VIC 3000
Australia
www.frontier-economics.com 	
switch:
direct:
fax:
mobile:
email:


+61 (0)3 9620 4488
+61 (0)3 9613 1518
+61 (0)3 8614 2711
+61 (0)407 909 811
[email protected] <mailto:[email protected]> 


This e-mail, including any attachments, may contain confidential and privileged information for the sole use of the intended recipient(s). Any review, use, disclosure or distribution by others is strictly prohibited. If you are not the intended recipient (or authorised to receive information for the recipient), please contact the sender by reply e-mail and delete all copies of this message. Thank you.

	



-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Javier
Bacarreza
Sent: Tuesday, 27 March 2007 1:58 PM
To: Stata List
Subject: st: Filling data


Hello,

I'm working with some data and Im having problems filling some missing data  have data as follows, and want to fill the missing data as I did in the example below (gini2). Given that the time period between available observations is not regular its quite complicated to create the gini2 variable. 

I would really appreciate if you could give me a hint.

All the best!

J


countryyeargini1gini2
Argentina196143.443.4
Argentina196243.4
Argentina196343.4
Argentina196443.4
Argentina196543.4
Argentina196643.4
Argentina196743.4
Argentina196843.4
Argentina196938.138.1
Argentina197038.1
Argentina197138.1
Argentina197238.1
Argentina197338.1
Argentina197436.736.7
Argentina197536.7
Argentina197636.7
Argentina197736.7
Argentina197836.7
Argentina197941.341.3
Argentina198041.3
Argentina198141.3
Argentina198241.3
Argentina198341.3
Argentina198441.3


 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
*
*   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/

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