[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/doc expressions.texi
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] pspp/doc expressions.texi |
Date: |
Mon, 01 May 2006 22:33:51 +0000 |
CVSROOT: /cvsroot/pspp
Module name: pspp
Branch:
Changes by: Ben Pfaff <address@hidden> 06/05/01 22:33:51
Modified files:
doc : expressions.texi
Log message:
Clarify LAG function.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/pspp/doc/expressions.texi.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
Patches:
Index: pspp/doc/expressions.texi
diff -u pspp/doc/expressions.texi:1.5 pspp/doc/expressions.texi:1.6
--- pspp/doc/expressions.texi:1.5 Mon May 2 06:21:18 2005
+++ pspp/doc/expressions.texi Mon May 1 22:33:51 2006
@@ -1024,19 +1024,26 @@
@subsection Miscellaneous Functions
@cindex functions, miscellaneous
-Miscellaneous functions take various arguments and produce various
-results.
-
@cindex cross-case function
@cindex function, cross-case
address@hidden {Function} {} LAG (@var{variable}[, @var{ncases}])
address@hidden {Function} {} LAG (@var{variable}[, @var{n}])
@anchor{LAG}
+
@var{variable} must be a numeric or string variable name. @code{LAG}
-results in the value of that variable for the case @var{ncases} before
-the current one. In case-selection procedures, @code{LAG} results in
-the value of the variable for the last case selected. Results in
-system-missing (for numeric variables) or blanks (for string
-variables) for the first case or before any cases are selected.
+yields the value of that variable for the case @var{n} before the
+current one. Results in system-missing (for numeric variables) or
+blanks (for string variables) for the first @var{n} cases.
+
address@hidden obtains values from the cases that become the new active file
+after a procedure executes. Thus, @code{LAG} will not return values
+from cases dropped by transformations such as @cmd{SELECT IF}, and
+transformations like @cmd{COMPUTE} that modify data will change the
+values returned by @code{LAG}. These are both the case whether these
+transformations precede or follow the use of @code{LAG}.
+
+If @code{LAG} is used before @cmd{TEMPORARY}, then the values it returns
+are those in cases just before @cmd{TEMPORARY}. @code{LAG} may not be
+used after @cmd{TEMPORARY}.
If omitted, @var{ncases} defaults to 1. Otherwise, @var{ncases} must
be a small positive constant integer. There is no explicit limit, but
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] pspp/doc expressions.texi,
Ben Pfaff <=