Date: Wed, 14 Dec 2005 10:17:56 -0600
Reply-To: "Swank, Paul R" <Paul.R.Swank@UTH.TMC.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Swank, Paul R" <Paul.R.Swank@UTH.TMC.EDU>
Subject: Re: how to draw f test function using sas?
Content-Type: text/plain; charset="us-ascii"
try this. You vary the df as needed. dfn = df for numerato, dfd = df for
denominator. If you need to go out further, just increase the upper end
of the loop. If you want cummulative probability, replace the p = by p =
probf(F,dfn,dfd);
This assumes a central F distribution.
data step1;
dfn = 1;
dfd = 100;
do F = .1 to 10 by .1;
p = probf(F+.05,dfn,dfd)- probf(F-.05,dfn,dfd);
output;
end;
symbol i=join r=120;
proc gplot;
plot p*f / nolegend vminor=1 hminor=0;
by dfn dfd;
run;
Paul R. Swank, Ph.D.
Professor, Developmental Pediatrics
Director of Research, Center for Improving the Readiness of Children for
Learning and Education (C.I.R.C.L.E.)
Medical School
UT Health Science Center at Houston
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
lixiaoyao
Sent: Wednesday, December 14, 2005 1:25 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: how to draw f test function using sas?
Hi all
Is there anyone who can tell me how to draw a f-test curve using sas?
Thanks
|