Dear All,

I am looking at the following chunck of the ado file of the user written routine utest:

The code is not completed, but I used only the part that I need to explain my question.

The first line

is almost clear. My doubt is about the options minimum and maximum. Which is the meaning of the number 0.12345? Is this just a conventional number? I am asking this because later on I read:

where `var1' is just the first variable in the varlist. Now this part of the code tells me that the if `minimum'=-.12345 then the local x_min will be equal to r(min). Otherwise x_min=`minimum', which is the value specified in the option "minimum". Now the default of the test implemented by utest is to set x_min=r(min). So, eventually it is totally unclear to me why minimum/maximum come out with (real 0.12345). Is there any esplanation that can help me to understand?

Thanks in advance and I apologize if my question is not entirely clear

I am looking at the following chunck of the ado file of the user written routine utest:

Code:

*** Module UTEST *** * Change log * 7.17.14 Version 1.1: Option prefix to handle multiple equations * 2.22.16 Version 1.2: Fixed bug with trivial failure to reject H0 * 1.25.19 Version 1.3: Converted to rclass, return main results program define utest, rclass version 9 syntax varlist(min=2 max=2 numeric) [, MInimum(real -.12345) MAximum(real .12345) Quadratic Inverse Fieller Level(cilevel) PREfix(string)] tokenize `varlist' local var1="`1'" local var2="`2'" if "`prefix'"!="" & substr("`prefix'",-1,.)!=":" { local prefix "`prefix':" } local df=e(df_r) if `df'==. { local df=e(N) } mat beta=e(b) mat covar=e(V) mat b1=beta[1,"`prefix'`var1'"] local b1=b1[1,1] mat b2=beta[1,"`prefix'`var2'"] local b2=b2[1,1] mat s11=covar["`prefix'`var1'","`prefix'`var1'"] mat s12=covar["`prefix'`var1'","`prefix'`var2'"] mat s22=covar["`prefix'`var2'","`prefix'`var2'"] local s11=s11[1,1] local s12=s12[1,1] local s22=s22[1,1] qui su `var1' if `minimum'==-.12345 { local x_min=r(min) } else { local x_min=`minimum' } if `maximum'==.12345 { local x_max=r(max) } else { local x_max=`maximum' }

The first line

Code:

syntax varlist(min=2 max=2 numeric) [, MInimum(real -.12345) MAximum(real .12345) Quadratic Inverse Fieller Level(cilevel) PREfix(string)]

is almost clear. My doubt is about the options minimum and maximum. Which is the meaning of the number 0.12345? Is this just a conventional number? I am asking this because later on I read:

Code:

if `minimum'==-.12345 { local x_min=r(min) } else { local x_min=`minimum' } if `maximum'==.12345 { local x_max=r(max) } else { local x_max=`maximum' }

where `var1' is just the first variable in the varlist. Now this part of the code tells me that the if `minimum'=-.12345 then the local x_min will be equal to r(min). Otherwise x_min=`minimum', which is the value specified in the option "minimum". Now the default of the test implemented by utest is to set x_min=r(min). So, eventually it is totally unclear to me why minimum/maximum come out with (real 0.12345). Is there any esplanation that can help me to understand?

Thanks in advance and I apologize if my question is not entirely clear

## Comment