Get expected numbers of cases

Share:

Description

Converts list of matrices produced by post1PYO into a matrix that corresponds to the matrix of observed cases produced by post1PYO.

Usage

1
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

SEERaBomb-package, seerSet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.