i tried to use df(x,df1,df2) but the values arent the same when i looked it up in a F Distribution table.. How to get the same F Distribution values in R as in the f table?
Kjetil Brinchmann Halvorsen
2004-Oct-06 02:49 UTC
[R] How to get F Distribution values in R
pio claudio wrote:>i tried to use df(x,df1,df2) but the values arent the >same when i looked it up in a F Distribution table.. > >How to get the same F Distribution values in R as in >the f table? > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > > >You looked up the F density (d in df is density) Try pf, which gives cumulative probabilities -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra
Have you looked up what df() computes? What did you think the `d' in df() means? Andy> From: pio claudio > > i tried to use df(x,df1,df2) but the values arent the > same when i looked it up in a F Distribution table.. > > How to get the same F Distribution values in R as in > the f table? > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
is x in df(x,df1,df2) the significance level? the
alpha?
alpha .05
\v1 1 2 3
v2
1 161.448 199.500 215.707
2 18.513 19.000 19.164
3 10.128 9.552 9.277
this is a portion of the F distribution table..
sorry, but i still cant figure out how to use df()(or
pf())...
thanks
pio claudio wrote:
>i tried to use df(x,df1,df2) but the values arent the
>same when i looked it up in a F Distribution table..
>
>How to get the same F Distribution values in R as in
>the f table?
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html>
>
>
>
You looked up the F density (d in df is density) Try
pf, which gives
cumulative probabilities
--
Kjetil Halvorsen.
_______________________________
Declare Yourself - Register online to vote today!
> outer(1:3, 1:3, function(df1, df2) qf(0.95, df1, df2))[,1] [,2] [,3] [1,] 161.4476 18.51282 10.127964 [2,] 199.5000 19.00000 9.552094 [3,] 215.7073 19.16429 9.276628 Andy> From: pio claudio > > is x in df(x,df1,df2) the significance level? the > alpha? > > > alpha .05 > \v1 1 2 3 > v2 > 1 161.448 199.500 215.707 > 2 18.513 19.000 19.164 > 3 10.128 9.552 9.277 > this is a portion of the F distribution table.. > > sorry, but i still cant figure out how to use df()(or > pf())... > > thanks > > > pio claudio wrote: > > >i tried to use df(x,df1,df2) but the values arent the > >same when i looked it up in a F Distribution table.. > > > >How to get the same F Distribution values in R as in > >the f table? > > > >______________________________________________ > >R-help at stat.math.ethz.ch mailing list > >https://stat.ethz.ch/mailman/listinfo/r-help > >PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > > > > > > > > You looked up the F density (d in df is density) Try > pf, which gives > cumulative probabilities > > -- > > Kjetil Halvorsen. > > > > > > _______________________________ > > Declare Yourself - Register online to vote today! > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >