Compute the value of CDF on Uniform Distribution in R Programming - punif() Function Last Updated : 03 Jul, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In R programming, punif() function is used to compute the value of Cumulative Distribution Function(CDF). Syntax: punif(q, min = 0, max = 1, lower.tail = TRUE, log.p = FALSE) Parameters: q: represents vector of quantiles min, max: represents lower and upper limits of the distribution lower.tail: represents logical value. If TRUE, probabilities are P[X<=x] log.p: represents logical value. If TRUE, probabilities are given as log(p) Example 1: r # Create vector of random deviation u <- runif(20) punif(u) == u print(punif(u)) Output: [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [16] TRUE TRUE TRUE TRUE TRUE [1] 0.21571509 0.97224483 0.74654757 0.93053902 0.90868119 0.93048128 [7] 0.41566382 0.52074950 0.41353715 0.48460207 0.63706965 0.16338451 [13] 0.22761876 0.54239105 0.07045675 0.04363406 0.68484316 0.86928257 [19] 0.06046589 0.29565811 Example 2: r # Output to be present as PNG file png(file = "punifGFG.png") # Plot function curve(punif(x, min = 2, max = 6), 0, 8, ylim = c(0, 0.5), ylab = "f(x)") # Saving the file dev.off() Output: Comment More infoAdvertise with us Next Article Compute the value of CDF on Uniform Distribution in R Programming - punif() Function U utkarsh_kumar Follow Improve Article Tags : R Language R Statistics Similar Reads Compute the Value of Quantile Function over Uniform Distribution in R Programming - qunif() Function In R programming, qunif() function gives the value of quantile function over Uniform Distribution. Syntax: qunif(p, min, max, lower.tail = TRUE, log.p = FALSE) Parameters: p: represents probabilities vector min, max: represents lower and upper limits of the distribution lower.tail: represents logica 1 min read Compute the value of CDF over Studentized Range Distribution in R Programming - ptukey() Function ptukey() function in R Language is used to compute the value of Cumulative Distribution Function(CDF) over Studentized Range for a sequence of numeric values. Syntax: ptukey(x, nmeans, df) Parameters: x: Numeric Vector nmeans: Number of means df: Degree of Freedom Example 1: Python3 1== # R Program 1 min read Compute the value of CDF over Wilcoxon Rank Sum Distribution in R Programming â pwilcox() Function pwilcox() function in R Language is used to compute the value of Cumulative Density Function(CDF) for Wilcoxonrank Sum Statistic Distribution over a sequence of Numeric Values. Syntax: pwilcox(x, m, n) Parameters: x: Numeric Vector m: Larger sample size n: Smaller sample size Example 1: Python3 1== 1 min read Compute the value of Quantile Function over F Distribution in R Programming - qf() Function qf() function in R Language is used to compute the value of quantile function over F distribution for a sequence of numeric values. It also creates a density plot of quantile function over F Distribution. Syntax: qf(x, df1, df2) Parameters: x: Numeric Vector df: Degree of Freedom Example 1: Python3 1 min read Compute the value of CDF over Wilcoxon Signedrank Distribution in R Programming - psignrank() Function psignrank() function in R Language is used to compute the value of Cumulative Density Function(CDF) over Wilcoxon Signedrank Statistic Distribution for a sequence of Numeric values. Syntax: psignrank(x, n) Parameters: x: Numeric Vector n: Sample Size Example 1: Python3 1== # R Program to compute the 1 min read Like