Learn R Programming

NGSSEML (version 1.0)

NumFail: Number of failures in each interval

Description

The function NumFail gives the number of failures in each interval of the PEM.

Usage

NumFail(StaPar,Yt,Event,Break,Xt)

Arguments

StaPar

is the static parameter vector.

Yt

is a vector with the failure/censored times.

Event

is a censoring indicator (a vector).

Break

is a vector with the interval limits.

Xt

are the explanatory variables to be inserted in the model.

Value

nf

'nf' is a vector with the number of failures in each interval.

%% ...

Details

Typical usages are

NumFail(StaPar,Yt,Event,Break,Xt)

References

Gamerman, D., Santos, T. R., and Franco, G. C. (2013). A Non-Gaussian Family of State-Space Models with Exact Marginal Likelihood. Journal of Time Series Analysis, 34(6), 625-645.

Santos T. R., Gamerman, D., Franco, G. C. (2017). Reliability Analysis via Non-Gaussian State-Space Models. IEEE Transactions on Reliability, 66, 309-318.

See Also

LikeF SmoothingF

Examples

Run this code
# NOT RUN {
################################################################################ 
#
## PEM Example: the GTE data 
##
################################################################################
library(NGSSEML)
data(gte_data)
Yt=gte_data$V1
Xt=NULL
Zt=NULL
amp=FALSE
Event=gte_data$V2        # Event: failure, 1.
Break=GridP(Yt, Event, nT = NULL)
StaPar=c(0.7)
NumFail(StaPar,Yt,Event, Break, Xt = NULL)
# }

Run the code above in your browser using DataLab