Learn R Programming

SEERaBomb (version 2015.2)

getE: 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.

See Also

SEERaBomb-package, seerSet

Examples

Run this code
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))

Run the code above in your browser using DataLab