在 R 编程中计算对数正态分位数函数的值 – qlnorm()函数
R 语言中的qlnorm()
函数用于计算对数正态分位数函数的值。它还创建了对数正态分布的分位数函数图。
Syntax: qlnorm(vec)
Parameters:
vec: x-values for normal density
示例 1:
# R program to compute value of
# log normal quantile function
# Creating x-values for density
x <- seq(0, 1, by = 0.2)
# Calling qlnorm() function
y <- qlnorm(x)
y
输出:
[1] 0.0000000 0.4310112 0.7761984 1.2883304 2.3201254 Inf
示例 2:
# R program to compute value of
# log normal quantile function
# Creating x-values for density
x <- seq(0, 1, by = 0.02)
# Calling qlnorm() function
y <- qlnorm(x)
# Plot a graph
plot(y)
输出: