summary.seerSet {SEERaBomb} | R Documentation |
Summary of seerSet object
Description
Creates a data.frame of cases and median ages and survival times for each cancer and treatment type.
Usage
## S3 method for class 'seerSet'
summary(object, ...)
Arguments
object |
seerSet object produced by seerSet(). |
... |
Included to match arg list of generic summary. |
Value
A list that includes: a data.frame of cases, median ages at diagnosis, and survival times, in years, for each cancer and treatment type; a data.frame of person-years by year; and smaller things such as a title, sex, race, and notes. The resulting list is set to class seerSet.summary which has a print method.
Author(s)
Tom Radivoyevitch (radivot@ccf.org)
See Also
SEERaBomb-package, mk2D, plot2D
Examples
## Not run:
library(SEERaBomb)
load("~/data/SEER/mrgd/cancDef.RData") #load in canc
load("~/data/SEER/mrgd/popsae.RData") # load in popsae
canc=canc%>%select(casenum,race:yrdx,surv,cancer,trt,id)
popsa=popsae%>%group_by(db,race,sex,age,year)%>%summarize(py=sum(py)) # sum on regs
pm=seerSet(canc,popsa,Sex="male",ageStart=0,ageEnd=100) #pooled (races) male seerSet
pm # no print method for seerSet object, so we see the list
(x=summary(pm)) # print renders summary and plot of PY
class(x)<-NULL #if you want to see the list as is, kill its class.
x # It then goes through the regular print method for lists.
## End(Not run)
[Package SEERaBomb version 2019.2 Index]