Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: repeating first x values


From   Gabriel Nicolás Michelena <hmg@mrecic.gov.ar>
To   statalist@hsphsun2.harvard.edu
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: hmg@mrecic.gov.ar 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index