stats[describe]
count
Count of non missing items
Calling Sequence
Parameters
Description
Examples
stats[describe, count](data)
describe[count](data)
data
-
Statistical list
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function count of the subpackage stats[describe, ...] counts the number of non missing observations in data. It uses the weight of the items, as specified by Weight.
Since the function count gives the total weight of the non-missing data, it is useful in conjunction with stats[transform,scaleweight], stats[transform,tally], and stats[transform,tallyinto], in order to find relative frequencies.
The command with(stats[describe],count) allows the use of the abbreviated form of this command.
with⁡stats:
Data consists of the number 4 repeated 5 times, together with the numbers 2 and 3. Seven items in all.
data1≔2,3,Weight⁡4,5
describecount⁡data1
7
Here the data consists of 1 missing item, 10 copies of the number 3, 3 items in the range 11<=x<12 and 1 copy of the number 4. Fourteen non-missing items.
data2≔Weight⁡3,10,missing,4,Weight⁡11..12,3
describecount⁡data2
14
See Also
describe(deprecated)[countmissing]
Statistics
Statistics[Count]
stats(deprecated)[data]
Download Help Document