[R] F Distribution

Peter Langfelder peter.langfelder at gmail.com
Mon Dec 21 20:57:42 CET 2015


You want to use qf which gives you the value at a given percentile. pf
gives you the p-value for a given value of F (inverse)

> qf(0.95, 1, 1)
[1] 161.4476

> pf(161.4476, 1, 1)
[1] 0.95



Peter

On Mon, Dec 21, 2015 at 11:51 AM, Robert Sherry <rsherry8 at comcast.net> wrote:
>
> When I use a table, from a Schaum book, I see that for the 95 percentile,
> with v_1 = 1 and v_2 = 1 the value is 161. In the modern era,
> looking values up in a table is less than ideal. Therefore, I would expect R
> to have a function to do this and based upon my
> reading of the documentation, I would expect the following call to get the
> value I expect:
>      pf( .95,1, 1)
> However, it produces
>     0.4918373
> Therefore, I conclude that I am using the wrong function. What function
> should I use?
>
> Thanks
> Bob
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list