0
votes

I have been trying all day to plot a simple theoretical exponential distribution, with beta value of 15.

Have tried the followning, with many, many variations:

data exponential;
do x = 0 to 100 by 5;
density = cdf('exponential',x< ,15>
output exponential;
end;
run;

I am following the recommendations found in the link below, and in various help documents

(http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n0n7cce4a3gfqkn1vr0p1x0of99s.htm#n0p4ehagihl2zcn10orv1azqbr26)

Somehow, however, SAS just won't have it:

ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,a numeric constant, a datetime constant, a
missing value, bitstring, INPUT, PUT.         

ERROR 388-185: Expecting an arithmetic operator.  

ERROR 76-322: Syntax error, statement will be ignored.

Would someone please tell me what I am doing wrong?

2

2 Answers

2
votes
data exponential;
   do x = 0 to 100 by 5;
      density = cdf('exponential',x,15);
      output exponential;
      end;
   run;
1
votes

Don't include the <> symbols that the manual page is using to designate optional parameters.

density = cdf('exponential',X,15) ;