Dataplot Vol 2 Vol 1

# CUMULATIVE MINIMUM

Name:
CUMULATIVE MINIMUM (LET)
Type:
Let Subcommand
Purpose:
Compute the cumulative minimum for a variable.
Description:
For element I of the given variable, the cumulative minimum is the minimum of elements 1 through I.
Syntax:
LET <y> = CUMULATIVE MINIMUM <x>             <SUBSET/EXCEPT/FOR qualification>
where <x> is a response variable;
<y> is a variable where the computed cumulative minimums are stored;
and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
LET Y2 = CUMULATIVE MINIMUM Y1
LET Y2 = CUMULATIVE MINIMUM Y1 SUBSET Y1 > 0
Default:
None
Synonyms:
None
Related Commands:
 MINIMUM = Compute the minimum of a variable. CUMULATIVE STATISTIC = Compute the cumulative value of a specified statistic for a variable. CROSS TABULATE (LET) = Compute a statistic, or a cumulative statistic, across groups. CUMULATIVE SUM = Compute the cumulative sum of a variable. CUMULATIVE MEAN = Compute the cumulative mean of a variable. CUMULATIVE MAXIMUM = Compute the cumulative minimum of a variable. CUMULATIVE PRODUCT = Compute the cumulative product of a variable. CUMULATIVE INTEGRAL = Compute the cumulative integral of a variable. CUMULATIVE HAZARD = Compute the cumulative hazard of a variable.
Applications:
Data Analysis
Implementation Date:
2012/12
Program:
```
let y = norm rand numb for i = 1 1 10
.
let y1 = cumulative sum  y
let y2 = cumulative mean y
let y3 = cumulative mini y
let y4 = cumulative maxi y
.
set write decimals 3
print y y1 y2 y3 y4
```
The following output is generated
```---------------------------------------------------------------------------
Y             Y1             Y2             Y3             Y4
---------------------------------------------------------------------------
-1.073         -1.073         -1.073         -1.073         -1.073
0.573         -0.499         -0.249         -1.073          0.573
-0.873         -1.373         -0.457         -1.073          0.573
0.233         -1.139         -0.284         -1.073          0.573
-0.455         -1.594         -0.318         -1.073          0.573
-0.525         -2.120         -0.353         -1.073          0.573
-0.705         -2.825         -0.403         -1.073          0.573
0.032         -2.793         -0.349         -1.073          0.573
1.190         -1.602         -0.178         -1.073          1.190
0.269         -1.332         -0.133         -1.073          1.190

```

Date created: 01/07/2013
Last updated: 01/13/2013