Stata 15 help for inrange

[FN] Programming functions

Function

inrange(z,a,b) Description: 1 if it is known that a < z < b; otherwise, 0 The following ordered rules apply: z > . returns 0. a > . and b = . returns 1. a > . returns 1 if z < b; otherwise, it returns 0. b > . returns 1 if a < z; otherwise, it returns 0. Otherwise, 1 is returned if a < z < b. If the arguments are strings, "." is interpreted as "". Domain: all reals or all strings Range: 0 or 1


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index