Learn R Programming

weibulltools (version 0.5.4)

predict_quantile: Estimation of Quantiles for Parametric Lifetime Distributions

Description

This function estimates the quantiles for a given set of estimated location-scale parameters and specified failure probabilities.

Usage

predict_quantile(p, loc_sc_params, distribution = c("weibull", "lognormal",
  "loglogistic"))

Arguments

p

a numeric vector which consists of failure probabilities regarding the lifetime data.

loc_sc_params

a (named) numeric vector of estimated location and scale parameters for a specified distribution. The order of elements is important. First entry needs to be the location parameter \(\mu\) and the second element needs to be the scale parameter \(\sigma\).

distribution

supposed distribution of the random variable. The value can be "weibull", "lognormal" or "loglogistic". Other distributions have not been implemented yet.

Value

A vector containing the estimated quantiles for a given set of failure probabilities and estimated parameters.

Examples

Run this code
# NOT RUN {
quants <- predict_quantile(p = c(0.01, 0.1, 0.5), loc_sc_params = c(5, 0.5),
                           distribution = "weibull")
# }

Run the code above in your browser using DataLab