PlugInBand: Simple Plug in badnwidth selector

Description Usage Arguments Details Value References See Also Examples

Description

Provides the asymptotic MISE optimal plug-in bandwidth for the hazard rate estimator HazardRateEst, see Hua, Patil and Bagkavos (2018). The bandwidth is also suitable for use as a pilot bandwidth in TransHazRateEst and VarBandHazEst.

Usage

1
PlugInBand(xin, xout,   cens, kfun ) 

Arguments

xin

A vector of data points

xout

The point at which the estimates should be calculated.

cens

Censoring Indicators.

kfun

A kernel function.

Details

The asymptotic MISE optimal plug-in bandwidth selector for HazardRateEst is defined by

h_{ opt} = ≤ft[\frac{R(K)}{nR(λ_T'')μ_{2,K}^2}\int \frac{λ_T(x)}{1-F(x)}\,dx \right]^{1/5}

see (9) in Hua, Patil and Bagkavos (2018). The estimate of R(λ_T'') to be used in h_{opt} is

R(\hat λ_T'') = \int_0^ξ ≤ft (\hat λ_T''(x|\hat b_n^\ast) \right )^2\,dx.

Also,

\int_0^T \frac{λ_T(x)}{1-F(x)}\,dx

is estimated by applying the extended Simpson's numerical integration rule, SimpsonInt, on

\frac{\hat λ_T(x|\hat b_n^\ast) }{1-F(x)}

where 1-F(x) is estimated by KMest. The estimation is implemented in the NP.M.Estimate function.

Currently b_n^\ast is estimated by bw.nrd. However according to (11) in Hua, Patil and Bagkavos (2018)., in future versions this package will support

b_n^\ast = ≤ft \{ \frac{5R(K'')}{n μ_{2,K}^2 R(λ_T^{(4)})} \int \frac{λ_T(x)}{1-F(x)}\,dx \right \}^{1/9}.

where

R(\hat λ_T^{(4)}) = \frac{(\hat a(\hat a-1)(\hat a-2)(\hat a-3)(\hat a-4))^2}{(2\hat a-9){\hat{b}}^{2\hat a} } (ξ^{2\hat a-9} - {p_α}^{2\hat a-9}), \hat a\neq 9/2

and \hat M is already estimated by NP.M.Estimate as expalined above (it will be much more stable than using a Weibull reference model).

Value

A scalar with the value of the suggested bandwidth.

References

Hua, Patil and Bagkavos, An $L_1$ analysis of a kernel-based hazard rate estimator, Australian and New Zealand J. Statist., (60), 43-64, (2018).

See Also

HazardRateEst, LLHRPlugInBand

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
x<-seq(0, 5,length=100) #design points where the estimate will be calculated
SampleSize<-100 #amount of data to be generated
ti<- rweibull(SampleSize, .6, 1) # draw a random sample
ui<-rexp(SampleSize, .2)         # censoring sample
cat("\n AMOUNT OF CENSORING: ", length(which(ti>ui))/length(ti)*100, "\n")
x1<-pmin(ti,ui)                  # observed data
cen<-rep.int(1, SampleSize)      # initialize censoring indicators
cen[which(ti>ui)]<-0             # 0's correspond to censored indicators

huse1<- PlugInBand(x1, x, cen, Biweight)
huse1

NPHazardRate documentation built on May 2, 2019, 10:24 a.m.