Learn R Programming

descriptr (version 0.1.0)

f_plot: Visualize F Distribution

Description

Visualize how changes in degrees of freedom affect the shape of the F distribution. Compute\/visualize quantiles out of given probability and probability from a given quantile.

Usage

f_plot(num_df = 4, den_df = 30, normal = FALSE)

f_per(probs = 0.95, num_df = 3, den_df = 30, type = c("lower", "upper"))

f_prob(perc, num_df, den_df, type = c("lower", "upper"))

Arguments

num_df

degrees of freedom associated with the numerator of f statistic

den_df

degrees of freedom associated with the denominator of f statistic

normal

logical; if TRUE, normal curve with same mean and sd as the F distribution is drawn

probs

a probability value

type

lower tail or upper tail

perc

a quantile value

Value

percentile for the probs based on num_df, den_df and type or probability value for perc based on num_df, den_df and type

See Also

FDist

Examples

Run this code
# visualize F distribution
f_plot()
f_plot(6, 10, normal = TRUE)

# compute\/visualize probability from a given quantile
f_per(0.95, 3, 30, 'lower')
f_per(0.125, 9, 35, 'upper')

# compute\/visualize quantiles out of given probability
f_prob(2.35, 5, 32)
f_prob(1.5222, 9, 35, type = "upper")

Run the code above in your browser using DataLab