summary.seerSet: Summary of seerSet object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/summary.seerSet.R

Description

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

Usage

1
2
## 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

 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)

SEERaBomb documentation built on Dec. 16, 2019, 1:21 a.m.