```Date: Thu, 12 Mar 2009 19:07:40 -0400 Reply-To: Sigurd Hermansen Sender: "SAS(r) Discussion" From: Sigurd Hermansen Subject: Re: Invalid Argument to PROBIT Problem Comments: To: "tonypit45@yahoo.ca" In-Reply-To: <509398.10966.qm@web57002.mail.re3.yahoo.com> Content-Type: text/plain; charset="iso-8859-1" Does the error message indicate a run-time error that stops program execution, or an error in the range of one or more of the observations in the datasets? A missing value may trigger an error message one observation at a time. Conditional execution of the probit function assignment could take care of that type of problem. An argument that has all values out of range has to have different treatment. Why not show the actual error message? S -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Anthony Pitruzzello Sent: Thursday, March 12, 2009 5:35 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Invalid Argument to PROBIT Problem Greetings All, This code converts percentile ranks to normal curve equivalents. See output. * Test Program to create NCEs from XILs; %let prefx = SAT10_; %let suffx = 8; data cards; input pr; &prefx.nce&suffx = round(probit(pr/100)*21.06+50,.1); cards; 1 2 3 4 5 6 7 run; proc print; run; produces this output: SAT10_ Obs pr nce8 1 1 1.0 2 2 6.7 3 3 10.4 4 4 13.1 5 5 15.4 6 6 17.3 7 7 18.9 This is essentially the same code, applied in a program: data temp.FC8; merge exp8 exp9 temp.FC7(in=x); by sid; if x; *** Exp_mathpr8 is a percentile, properly defined as a numeric; nce = round(probit(Exp_mathpr8/100)*21.06+50,.1); run; This produces the message: Invalid argument to function PROBIT. Can anyone figure why the argument in the first instance is valid and in the second instance is not? __________________________________________________________________ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com ```

Back to: Top of message | Previous page | Main SAS-L page