Last data update: 2014.03.03

R: Plot baseline survival function
plot.ICBayesR Documentation

Plot baseline survival function

Description

Plot estimated baseline survival function at grids, which are stored in the ICBayes object.

Usage

## S3 method for class 'ICBayes'
plot(x, y, ...)

Arguments

x

a sequence of points where baseline survival probabilities are estimated

y

estiamted baseline survival at grids

...

other arguments

Value

A plot of baseline survival function.

Examples

data(bcdata)
try<-ICBayes(Surv(L,R,type='interval2')~x1,data=data.frame(bcdata),
model='case2ph',status=bcdata[,3],p=1,x_user=c(1),
knots=seq(0.1,60.1,length=10),grids=seq(0.1,60.1,by=1),niter=500,burnin=100)
plot.ICBayes(try$grids,try$S0_m)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(ICBayes)
Loading required package: HI
Loading required package: survival
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ICBayes/plot.ICBayes.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.ICBayes
> ### Title: Plot baseline survival function
> ### Aliases: plot.ICBayes
> 
> ### ** Examples
> 
> data(bcdata)
> try<-ICBayes(Surv(L,R,type='interval2')~x1,data=data.frame(bcdata),
+ model='case2ph',status=bcdata[,3],p=1,x_user=c(1),
+ knots=seq(0.1,60.1,length=10),grids=seq(0.1,60.1,by=1),niter=500,burnin=100)
> plot.ICBayes(try$grids,try$S0_m)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>