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: Carryforward oddity


From   Steven Archambault <archstevej@gmail.com>
To   statalist@hsphsun2.harvard.edu, dkantor@jhu.edu
Subject   st: Carryforward oddity
Date   Thu, 12 May 2011 09:23:41 -0600

Hi David and statalist,

I am using the carryforward command as follows. As you can see, there
is some unintended backward filling. Where does that -.25 come from?

carryforward voice_acct, gen(voice3)

year	country_name	voice_acct	   voice3
1991	Bangladesh		           -.25
1992	Bangladesh		           -.25
1993	Bangladesh		           -.25
1994	Bangladesh		           -.25
1995	Bangladesh		           -.25
1996	Bangladesh	-.23	           -.23
1997	Bangladesh	-.24	           -.24
1998	Bangladesh	-.25	           -.25
1999	Bangladesh	-.345	           -.345
2000	Bangladesh	-.44	           -.44
2001	Bangladesh		           -.44


Thanks. -Steve
*
*   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