|
You can use probchi() to generate the data points, then use
proc gplot to draw the curve:
data xx;
do df=2,8,16;
do x=0 to 20 by 0.1;
v=PROBCHI(x,df);
output;
end;
end;
run;
proc gplot data=xx;
plot v*x=df;
run;
HTH
Ya
On Mon, 16 Aug 2010 12:38:50 -0400, Randall Powers <powers_r@BLS.GOV> wrote:
>Hi Folks,
>
>I've been asked to generate a graph with four overlad density plots.
>
>One plot will be for a chi-square distribution with two degrees of freedom,
>one for four degrees of freedom, one for eight degrees of freedom and one
>for 16 degrees of freedom.
>
>My question is: Does SAS have some kind of function relevant to the Chi
>squared density plot that will make this simpler than coding up the
>textbook definition of f(x) for x>0? Using SAS Help online and using the
>Google turned up nothing.
>
>Thanks!
|