goptions reset=global gunit=pct border cback=white colors=(black blue green red) ftitle=swissb ftext=swiss htitle=4 htext=2; symbol1 color=red interpol=join value=dot height=.5; * for the laplace distribution, the third and fourth arguments are location and scale parameters, respectively ; data laplaceex ; do i = -10 to 10 by .5 ; prob = pdf('LAPLACE',i,0,5) ; cumprob = cdf('LAPLACE',i,0,5) ; output ; end ; run ; proc plot data = laplaceex ; plot cumprob*i prob*i ; title 'Laplace example' ; run ; proc gplot data = laplaceex ; plot prob*i / haxis= -10 to 10 by 2. vaxis=0 to .15 by .03 hminor=3 vminor=1 cvref=blue caxis=blue ctext=red; title 'Laplace example' ; run ; * for the Cauchy distribution, the third and fourth arguments are location and scale parameters, respectively ; data Cauchyex ; do i = -20 to 20 by .5 ; prob = pdf('CAUCHY',i,0,5) ; cumprob = probt(i,1) ; output ; end ; run ; proc plot data = cauchyex ; plot cumprob*i prob*i ; title 'Cauchy example' ; run ; proc gplot data = cauchyex ; plot prob*i / haxis= -20 to 20 by 2. vaxis=0 to .09 by .03 hminor=3 vminor=1 cvref=blue caxis=blue ctext=red; run ; * for the normal distribution, the third and fourth arguments are location and scale parameters, respectively ; data normalex ; do i = -20 to 20 by .5 ; prob = pdf('NORMAL',i,0,5) ; cumprob = cdf('NORMAL',i,0,5) ; output ; end ; run ; proc plot data = normalex ; plot prob*i cumprob*i ; title 'Normal example' ; run ; proc gplot data = normalex ; plot prob*i / haxis= -20 to 20 by 2. vaxis=0 to .09 by .03 hminor=3 vminor=1 cvref=blue caxis=blue ctext=red; run ;