Learn R Programming

SEERaBomb (version 2016.1)

summary.seerSet: Summary of seerSet object

Description

Creates a data.frame of cases and median ages and survival times for each cancer and treatment type.

Usage

"summary"(object, ...)

Arguments

object
seerSet object produced by seerSet().
...
Included to match arg list of generic summary.

Value

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.

See Also

SEERaBomb-package, mk2D, plot2D

Examples

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

Run the code above in your browser using DataLab