getE {SEERaBomb} | R Documentation |
Get expected numbers of cases
Description
Converts list of matrices produced by post1PYO into a matrix that corresponds to the matrix of observed cases produced by post1PYO.
Usage
getE(LPYM,D,ageStart,ageEnd,yearEnd,firstS,secondS)
Arguments
LPYM |
List of first cancer PY matrices produced by post1PYO. |
D |
D component of seerSet list produced by mk2D. |
ageStart |
ageStart component of seerSet. |
ageEnd |
ageEnd component of seerSet. |
yearEnd |
The most recent year in the SEER datasets. |
firstS |
Character vector of first cancers of interest; added to seerSet by tsd. |
secondS |
Character vector of second cancers of interest; added to seerSet by mk2D. |
Value
A matrix of expected cases with first cancers labeling the rows and second cancers labeling the columns.
Author(s)
Tom Radivoyevitch (radivot@ccf.org)
See Also
Examples
## Not run:
library(SEERaBomb)
pm=simSeerSet()
pm=mk2D(pm,secondS="B")
L=post1PYO(pm$canc,brks=c(0,2,5),binIndx=1,Trt="rad",yearEnd=2012 )
names(L)
names(pm)
with(pm,getE(L$LPYM,D,ageStart,ageEnd,yearEnd,cancerS,secondS))
## End(Not run)
[Package SEERaBomb version 2019.2 Index]