Description Usage Arguments Value Author(s) See Also Examples
View source: R/summary.seerSet.R
Creates a data.frame of cases and median ages and survival times for each cancer and treatment type.
1 2 |
object |
seerSet object produced by seerSet(). |
... |
Included to match arg list of generic summary. |
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.
Tom Radivoyevitch (radivot@ccf.org)
SEERaBomb-package, mk2D, plot2D
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.