nsf, Tm, CparamCalculation, power.matrix, base, SmoothedEstimate {NPHazardRate}R Documentation

Auxiliary functions for discrete hazard rate estimators

Description

Auxiliary functions for discrete semiparametric and kernel smooth hazard rate estimation

Usage

 nsf(xin, cens, xout)
 Tm(tk, xout, distribution, par1, par2)
 CparamCalculation(gamparam, VehHazard)
 power.matrix(M, n)
 base(m, b)
 SmoothedEstimate(NonParEst, VehHazard, gammapar, SCproduct, Cpar)

Arguments

xin

A vector of data points. Missing values not allowed.

cens

A vector of 1s and zeros, 1's indicate uncensored observations, 0's correspond to censored obs.

xout

The points where the estimate should be calculated.

tk

desing points for the NPMLE estimate.

distribution

which distribution to use?

par1

distribution parameter 1

par2

distribution parameter 2

gamparam

gamma parameter

M

a matrix to be raised to a power

n

the power the matrix will be raised at

m

express m as a power of b

b

express m as a power of b

NonParEst

The crude nonparametric hazard rate estimate.

VehHazard

Vehicle hazard rate

gammapar

gamma parameter

SCproduct

SC product, the result of DetermineSCprod

Cpar

C parameter, the result of CparamCalculation.

Details

Auxiliary functions for discrete hazard rate estimators. The function nsf is used for the kernel smooth estimate TutzPritscher.

Value

A vector with the values of the hazard rate estimates.

References

  1. Patil and Bagkavos (2012), Semiparametric smoothing of discrete failure time data, Biometrical Journal, 54, (2012), 5–19.

  2. Tutz, G. and Pritscher, L. Nonparametric Estimation of Discrete Hazard Functions, Lifetime Data Anal, 2, 291-308 (1996)


[Package NPHazardRate version 0.1 Index]