Generates a set of F distributed values.

r_fdist(df1, df2, ..., n = default_n(df1, df2), .seed = NULL)

Arguments

df1, df2

vectors of degrees of freedom, strictly positive

...

Unused

n

number of observations to generate. The default_n() function will provide a default value within context

.seed

One of the following:

  • NULL (default) will not change the current seed. This is the usual case for generating random numbers.

  • A numeric value. This will be used to set the seed before generating the random numbers. This seed will be stored with the results.

  • TRUE. A random seed value will be generated and set as the seed before the results are generated. Again, this will be stored with the results.

To extract the random seed from a previously generated set of values, use pull_seed()

Value

A numeric vector of length n

Examples

set_n(5) r_fdist(1, 1)
#> [1] 5.0701710 0.5572999 0.2667419 0.2316231 0.6843606
r_fdist(1:10, 2)
#> [1] 2.7223878 45.2050232 5.5639046 0.4528410 1.2071669 0.6649001 #> [7] 0.1900588 0.5821318 9.0677616 2.2860664
r_fdist(10, 2)
#> [1] 5.7205764 5.1206881 0.3449613 0.3121254 2.1341498
r_fdist(10, 2, n = 10)
#> [1] 0.2784492 1.8167699 4.1032534 0.8739764 1.3142012 25.8332637 #> [7] 1.5960910 0.4880101 0.1400232 6.9435143