pctinrange

0     0     Edited Sep 1, 2015
Usage:
[number] y pctinrange( [vector]x, [scalar]minvalue, [scalar]maxvalue )

Returns the percent of non-null elements in [vector]x such that minvalue <= xi <= maxvalue. minvalue or maxvalue may be null for unbounded ranges.

NOTE: [PERFORMS TABLE SCAN]

Examples:
pctinrange(Q1,0,4)
pctinrange(year,1950,null) (unbounded max)

See Also:
countin, countinrange, pctin

Leave a Comment

Please sign in to leave a comment.