Open In App

Compute the Value of Cumulative Weibull Density in R Programming – pweibull() Function

Last Updated : 25 Jun, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

pweibull() function in R Language is used to compute the value of Cumulative Distribution Function for Weibull Distribution. It also plots a density graph for Cumulative Weibull Function.

Syntax: pweibull(x, shape)

Parameters:
x: Numeric Vector
shape: Shape Parameter

Example 1:




# R Program to compute
# Cumulative Weibull Density
  
# Creating a sequence of x-values
x <- seq(-5, 15, by = 1)
  
# Calling pweibull() Function
y <- pweibull(x, shape = 0.2)
y


Output:

 [1] 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.6321206
 [8] 0.6829508 0.7122695 0.7327332 0.7483534 0.7609229 0.7713981 0.7803493
[15] 0.7881434 0.7950303 0.8011877 0.8067464 0.8118052 0.8164408 0.8207138

Example 2:




# R Program to compute
# Cumulative Weibull Density
  
# Creating a sequence of x-values
x <- seq(-5, 15, by = 0.2)
  
# Calling pweibull() Function
y <- pweibull(x, shape = 0.5)
  
# Plot a graph
plot(y)


Output:


Similar Reads

Compute the Value of Weibull Density in R Programming - dweibull() Function
dweibull() function in R Language is used to compute the value of Weibull Density over different numeric values for Weibull Distribution. Syntax: dweibull(x, shape) Parameters: x: Numeric Vector shape: Shape Parameter Example 1: # R Program to compute # Weibull Density # Creating a sequence of x-values x &lt;- seq(-10, 10, by = 1) # Calling dweibul
1 min read
Compute Randomly Drawn Weibull Density in R Programming - rweibull() Function
rweibull() function in R Language is used to compute random density for Weibull distribution. Syntax: rweibull(N, shape) Parameters: N: Sample Size shape: Shape Parameter Example 1: # R program to compute random # Weibull Density # Setting seed for # random number generation set.seed(1000) # Set sample size N &lt;- 20 # Calling rweibull() Function
1 min read
Compute the Value of Quantile Function over Weibull Distribution in R Programming - qweibull() Function
qweibull() function in R Language is used to compute the value of Quantile Function for Weibull Distribution. Syntax: qweibull(x, shape) Parameters: x: Numeric Vector shape: Shape Parameter Example 1: # R Program to compute the value of # Quantile Weibull Function # Creating a sequence of x-values x &lt;- seq(0, 1, by = 0.2) # Calling qweibull() Fu
1 min read
Compute Cumulative Chi Square Density in R Programming - pchisq() Function
pchisq() function in R Language is used to compute cumulative chi square density for a vector of elements. It also creates a density plot for chi square cumulative distribution. Syntax: pchisq(vec, df) Parameters: vec: Vector of x-values df: Degree of Freedom Example 1: # R program to compute # Cumulative Chi Square Density # Create a vector of x-v
1 min read
Compute Cumulative Cauchy Density in R Programming - pcauchy() Function
pcauchy() function in R Language is used to calculate the cumulative cauchy density. It also creates a density plot of cauchy cumulative distribution. Syntax: pcauchy(vec, scale) Parameters: vec: x-values for cauchy function scale: Scale for plotting Example 1: # R Program to compute cumulative cauchy density # Creating vector for x-values x &lt;-
1 min read
Compute Cumulative Logistic Density in R Programming - plogis() Function
plogis() function in R Language is used to compute logistic cumulative density of the distribution. It also creates a plot of the density of the logistic cumulative distribution. Syntax: plogis(vec) Parameters: vec: Vector of x-values for density Example 1: # R program to calculate # cumulative logistic density # Create a vector of x-values x &lt;-
1 min read
Compute Cumulative Log Normal Probability Density in R Programming - plnorm() Function
plnorm() function in R Language is used to compute the log normal value of the cumulative probability density function. It also creates a plot of the cumulative distribution of log normal density. Syntax: plnorm(vec) Parameters: vec: x-values for normal density Example 1: # R program to compute cumulative # log normal probability density # Creating
1 min read
Compute the Negative Binomial Cumulative Density in R Programming - pnbinom() Function
pnbinom() function in R Language is used to compute the value of negative binomial cumulative density. It also creates a density plot of the negative binomial cumulative distribution. Syntax: pnbinom(vec, size, prob) Parameters: vec: x-values for binomial density size: Number of trials prob: Probability Example 1: # R program to compute # Negative
1 min read
Compute the Cumulative Poisson Density in R Programming - ppois() Function
ppois() function in R Language is used to compute the cumulative density function for Poisson distribution. Syntax: ppois(vec, lambda) Parameters: vec: Sequence of integer values lambda: Average number of events per interval Example 1: # R program to compute # Cumulative Poisson Density # Sequence of x-values x &lt;- seq(-10, 10, by = 1) # Calling
1 min read
Compute the Value of Empirical Cumulative Distribution Function in R Programming - ecdf() Function
ecdf() function in R Language is used to compute and plot the value of Empirical Cumulative Distribution Function of a numeric vector. Syntax: ecdf(x) Parameters: x: Numeric Vector Example 1: # R Program to compute the value of # Empirical Cumulative Distribution Function # Creating a Numeric Vector x &lt;- seq(1, 50, by = 2) # Calling ecdf() Funct
1 min read
Article Tags :