Stata 11 help for inrange()

help inrange() -------------------------------------------------------------------------------

Title

[D] functions -- Functions

Programming function

inrange(z,a,b) Domain: all reals or all strings Range: 0 or 1 Description: returns 1 if it is known that a < z < b; otherwise, returns 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 "".

Also see

Manual: [D] functions

Help: [D] functions, [D] functions (programming functions)


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