Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: repeating first x values


From   Gabriel Nicolás Michelena <[email protected]>
To   [email protected]
Subject   st: repeating first x values
Date   Mon, 12 Sep 2011 12:51:03 -0300 (ART)

Hi Statalisters,

I will be specifc. I have this dataset 

 alpha	  id    id2
.00474	   1     1
.00062	   2     1
.035085	   3     1  
.035085	   4     1 
.035665	   5	 1
   .	   1     2
   .       2     2
   .       3     2  
   .       4     2 
   .       5	 2
	
	
and i want to replace the missing values in alpha (in id2=2) repeating the values of variable alpha in id=1

some clue how can i do it?
 	
Regards

-- 


Lic. Gabriel Michelena 




Centro de Economía Internacional 

Ministerio de Relaciones Exteriores, Comercio Internacional y Culto 

Esmeralda 1212 - 2° Piso - Oficina 201 

Ciudad Autónoma de Buenos Aires. ( C100 7ABR ) Argentina 

Tel: (+5411) 4819-7000. Interno 7485 

Fax: (+5411) 4819-7484 

URL: http://www.cei.gob.ar/ 

E-mail: [email protected] 

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index