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

st: St: replace in

From   "Eric Uslaner" <>
To   <>
Subject   st: St: replace in
Date   Thu, 23 Oct 2008 17:57:58 -0400


I have some historical data with different rows for countries such as the Czech Republic and the old Czechoslovakia.  I'd like to replace the missing values for the Czech Republic with those for the former Czechoslovakia (yes I know that there is a Slovakia--but I'll handle that separately).  The row for the Czech Republic is 40 and for Czechoslovakia is 41.  So I tried to type:

for var bmginiint1820-lbmlifexint1993: replace X[_40]=X[_41] if X[_41]==.

(and please don't lecture me on using the "for" command).  But I keep getting the error message:

weights not allowed

Can I do this?  In the past I have just cut and pasted the data, but I have a large number of variables and this could get awkward.  Any help would be appreciated.  Thanks.

Ric Uslaner

*   For searches and help try:

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