On Sun, 6 Dec 2015, Sven Schreiber wrote:
Am 06.12.2015 um 16:53 schrieb Allin Cottrell:
>
> That's now found and fixed. The p* functions for panel statistics, such
> as pxsum, were not confining themselves to the current sample range.
> That wasn't a completely motiveless crime, since I originally thought of
> them as providing values pertaining to the entire panel dataset.
> Nonetheless, I agree that failing to respect the sample range produces
> counter-intuitive results and is out of line with other functions.
Thanks; does it also hold for the replace() function that Jack
pointed out?
I've lost the context with Jack for now. However, looking at the
code, and also running a simple experiment, it appears that
replace() respects the sample range. If you have evidence to the
contrary, please let me know. Example:
<hansl>
open data9-7
smpl 1981:1 1983:4
WINTER = replace(WINTER, 1, 57)
smpl full
print WINTER -o
</hansl>
(1 is replaced by 57 only within the range of the first smpl
command).
Allin