dx2age: Constructing vector of age at deaths assuming that each death...

Description Usage Arguments Author(s) See Also Examples

View source: R/bootpash.r

Description

The function converts counts in vector dx into into individual age/time at deaths. Notice that dx does not contain information about right censoring so the resulting vector has only exactly observed events (deaths).

Internal function

Usage

1
dx2age(dx, x)

Arguments

dx

Death counts vector.

x

Beginning of the Age/time class. A vector of the same length as ndx.

Author(s)

Maciej J. Danko <[email protected]> <[email protected]>

See Also

lx2dx, dx2lx, and age2dx.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# ************************** REMOVE THIS ******************************
# Some functions will not work as they are not in the namespace
# Before integrating with pash please add "pash:::" in front of them. 
# To test them just run all functions in the bootpash.r 
# ***************************** END ***********************************
## Not run: 

# Data:
x=c(0,0.5,2,5,10,13,15)
dx=c(1,2,6,15,22,6,1)

# Should give the same vector as in dx.
age2dx(dx2age(dx,x),x)


## End(Not run)

MaciejDanko/BootstrapLT documentation built on July 29, 2017, 3:39 a.m.