在 R 编程中计算逻辑分位数函数的值 – qlogis()函数
R语言中的qlogis()
函数用于计算逻辑分位数函数的值。它还创建了逻辑密度分布的分位数函数图。
Syntax: qlogis(vec)
Parameters:
vec: x-values for normal density
示例 1:
# R program to compute value of
# logistic quantile function
# Creating x-values for density
x <- seq(0, 1, by = 0.2)
# Calling qlogis() function
y <- qlogis(x)
y
输出:
[1] -Inf -1.3862944 -0.4054651 0.4054651 1.3862944 Inf
示例 2:
# R program to compute value of
# logistic quantile function
# Creating x-values for density
x <- seq(0, 1, by = 0.02)
# Calling qlogis() function
y <- qlogis(x)
# Plot a graph
plot(y)
输出: