Description Usage Arguments Details Value References See Also Examples
The function ks.flex.weibull()
gives the values for the KS test assuming a flexible Weibull(FW) with shape
parameter alpha and scale parameter beta. In addition, optionally, this function
allows one to show a comparative graph between the empirical and theoretical cdfs for a specified data set.
1 2 | ks.flex.weibull(x, alpha.est, beta.est,
alternative = c("less", "two.sided", "greater"), plot = FALSE, ...)
|
x |
vector of observations. |
alpha.est |
estimate of the parameter alpha |
beta.est |
estimate of the parameter beta |
alternative |
indicates the alternative hypothesis and must be one of |
plot |
Logical; if TRUE, the cdf plot is provided. |
... |
additional arguments to be passed to the underlying plot function. |
The Kolmogorov-Smirnov test is a goodness-of-fit technique based on the maximum distance between the empirical and theoretical cdfs.
The function ks.flex.weibull()
carries out the KS test for the flexible Weibull(FW)
Bebbington, M., Lai, C.D. and Zitikis, R. (2007). A flexible Weibull extension, Reliability Engineering and System Safety, 92, 719-726.
pp.flex.weibull
for PP
plot and qq.flex.weibull
for QQ
plot
1 2 3 4 5 6 7 8 | ## Load data sets
data(repairtimes)
## Maximum Likelihood(ML) Estimates of alpha & beta for the data(repairtimes)
## Estimates of alpha & beta using 'maxLik' package
## alpha.est = 0.07077507, beta.est = 1.13181535
ks.flex.weibull(repairtimes, 0.07077507, 1.13181535,
alternative = "two.sided", plot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.