predmix: Prediction point and interval for mixture exponential...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/predmix.R

Description

Construct a prediction point (Predicted point) and a prediction interval (PI) for mixture exponential distribution. Generic method is print.

Usage

1
2
3
4
predmix(data, s, n, parameters,  conf=0.95)

## S3 method for class '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

Details

The parameters argument is assumed to specify the parameters for mixture of two exponential distributions by the mixing proportion, rate1 and rate2.

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.

Author(s)

H. M. Barakat, O. M. Khaled and Hadeer A. Ghonem.

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.

See Also

predI.

Examples

1
2
3
4
5
6
7
#  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))

PredictionR documentation built on March 26, 2020, 7:28 p.m.