ks.logis.exp()
gives the values for the KS test assuming a Logistic-Exponential(LE) with shape
parameter alpha and scale parameter lambda. In addition, optionally, this function
allows one to show a comparative graph between the empirical and theoretical cdfs for a specified data set.
ks.logis.exp(x, alpha.est, lambda.est, alternative = c("less", "two.sided", "greater"), plot = FALSE, ...)
"two.sided"
(default), "less"
, or "greater"
.ks.logis.exp()
carries out the KS test for the Logistic-Exponential(LE)pp.logis.exp
for PP
plot and qq.logis.exp
for QQ
plot
## Load data sets
data(bearings)
## Maximum Likelihood(ML) Estimates of alpha & lambda for the data(bearings)
## Estimates of alpha & lambda using 'maxLik' package
## alpha.est = 2.36754, lambda.est = 0.01059
ks.logis.exp(bearings, 2.36754, 0.01059, alternative = "two.sided", plot = TRUE)
Run the code above in your browser using DataLab