Description Usage Arguments Value Examples
This function estimates the failure probabilities for a given set of estimated location-scale (and threshold) parameters and specified quantiles.
1 2 3 | predict_prob(q, loc_sc_params, distribution = c("weibull", "lognormal",
"loglogistic", "normal", "logistic", "sev", "weibull3", "lognormal3",
"loglogistic3"))
|
q |
a numeric vector which consists of 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 μ and the second element needs to be the scale parameter σ. If a three-parametric model is used the third element is the threshold parameter γ. |
distribution |
supposed distribution of the random variable. The
value can be |
A vector containing the estimated failure probabilities for a given set of quantiles and estimated parameters.
1 2 3 4 5 6 7 | # Example 1: Predicted probabilities for two-parameter Weibull:
probs <- predict_prob(q = c(15, 48, 124), loc_sc_params = c(5, 0.5),
distribution = "weibull")
# Example 2: Predicted probabilities for three-parameter Weibull:
probs_weib3 <- predict_prob(q = c(25, 58, 134), loc_sc_params = c(5, 0.5, 10),
distribution = "weibull3")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.