在 R 编程中计算 F 分布上的分位数函数的值 – qf()函数
R 语言中的qf()
函数用于计算数值序列在 F 分布上的分位数函数的值。它还创建了 F 分布上的分位数函数的密度图。
Syntax: qf(x, df1, df2)
Parameters:
x: Numeric Vector
df: Degree of Freedom
示例 1:
# R Program to compute value of
# Quantile Function over F Distribution
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.2)
# Calling qf() Function
y <- qf(x, df1 = 2, df2 = 3)
y
输出:
[1] 0.0000000 0.2405958 0.6085817 1.2630236 2.8860266 Inf
示例 2:
# R Program to compute the value of
# Quantile Function over F Distribution
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.02)
# Calling qf() Function
y <- qf(x, df1 = 2, df2 = 3)
# Plot a graph
plot(y)
输出: