predmix: Prediction point and interval for mixture exponential distribution
Description
Construct a prediction point (Predicted point) and a prediction interval (PI) for mixture exponential distribution. Generic method is print.
Usage
predmix(data, s, n, parameters, conf=0.95)
# S3 method for predmix
print(x, …)
Arguments
data
A numeric vector
s
A numeric vector for the order of the next observation. The length of this vector must be equal to 1.
n
A numeric vector for the size of all data.
parameters
A numeric vector for the parameters of the distribuion of the data.
conf
Confidence level for the test.
x
An object of class "predmix".
…
Further argument to be passed to generic function
Value
predmix returns an object of class "predmix", a list with the following components:
point
the predicted point.
interval
the prediction interval.
lower
the lower bound of the interval.
upper
the upper bound of the interval.
Generic function:
print
The print of a "predmix" object shows few traces about the predicted point and interval.
Details
The parameters argument is assumed to specify the parameters for mixture of two exponential distributions by the mixing proportion, rate1 and rate2.
References
H. M. Barakat, O. M. Khaled, Hadeer A. Ghonem (2020), predicting future
lifetime for mixture exponential distribution.
Comm. Statist.- Sim. and Comp., DOI: 10.1080/03610918.2020.1715434.
# NOT RUN {# prediction for the next observation#set.seed(123)
library(Renext)
x<-sort(rmixexp2(30, 0.6, 2, 8))
predmix(x[1:25], 26, 30, c(0.6,2,8))
predmix(x[1:25], 29, 30, c(0.6,2,8))
# }