Re: replace with value from previous case



Very true, bruce, but the answer in almost any program would be fine.
Maybe it was a bit to much to post it in 2 groups, but i was quite
desperate, thanks again for your help!

Bruce Weaver wrote:
William wrote:
Hello,

I'm struggling with the following: for a certain variable i want to
replace the missings with the value from the previous case that's not
missing. data is
organised like this:
1 and I want... 1
. 1
. 1
2 2
1 1
. 1
. 1
. 1
. 1
. 1
2 2
. 2
. 2
. 2
. 2
. 2
. 2
. 2
1 1

Help is very much appreciated!

Kind regards,
William



William, you posted this same message in the SPSS newsgroup. There, it
made some sense, because it was clear you were asking about how to do it
in SPSS. In sci.stat.consult, nobody would know that you were asking
about how to do it in SPSS unless you said so. See my response in that
group.

--
Bruce Weaver
bweaver@xxxxxxxxxxxx
www.angelfire.com/wv/bwhomedir

.