CHR: Nelson-Aalen estimator

Description Usage Arguments Author(s) References See Also Examples

Description

This function computes the Nelson-Aalen estimator of the cumulative hazard rate from independent positive observations.

Usage

1
CHR(dat,t)

Arguments

dat

data from which the estimator is to be computed.

t

the estimator is computed at time t.

Author(s)

Romain Azais

References

Andersen P.K., Borgan O., Gill R.D., Keiding N. Statistical models based on counting processes Springer Series in Statistics. Springer-Verlag, New-York (1993)

See Also

plotCHR

Examples

1
2
3
4
5
6
7
# CHR

# Simulation of 50 independent exponential random variables
dat<-rexp(50,1)

# Nelson-Aalen estimator of cumulative hazard rate at time 2
CHR(dat,2)

EstSimPDMP documentation built on May 2, 2019, 3:40 p.m.