This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
library(relsurvForest)
## Carregando pacotes exigidos: survival
## Carregando pacotes exigidos: relsurv
## Carregando pacotes exigidos: date
## Carregando pacotes exigidos: ggplot2
## Carregando pacotes exigidos: gridExtra
##
## relsurvForest 3.2.2
##
## Type rfsrc.news() to see new features, changes, and bug fixes.
##
ness <- nessie(Surv(time,cens)~agegr,
data=rdata,
ratetable = slopop,
times = seq(0,20,2),
rmap = list(age = age*365.24, sex=sex,year=year))
##
## 0 2 4 6 8 10 12 14 16 18 20
## agegr<54 270 265.0 259.6 253.6 247.0 239.6 231.8 223.2 214.0 204.1 193.7
## agegr54-61 256 246.4 236.2 225.2 213.6 200.8 187.4 173.4 158.5 143.2 127.4
## agegr62-70 255 237.4 218.9 199.7 179.3 158.1 136.6 115.9 95.6 76.5 58.8
## agegr71-95 259 216.9 178.8 143.9 111.8 83.6 60.5 41.8 27.7 17.4 10.2
## c.exp.surv
## agegr<54 28.9
## agegr54-61 19.7
## agegr62-70 13.5
## agegr71-95 7.9
plot.nessie(ness,demVar="agegr", time.interest = 5, maxEventTime = 15)
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.