Description Usage Arguments Author(s) See Also Examples
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
1 | dx2age(dx, x)
|
dx |
Death counts vector. |
x |
Beginning of the Age/time class. A vector of the same length as |
Maciej J. Danko <danko@demogr.mpg.de> <maciej.danko@gmail.com>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.