Learn R Programming

ICBayes (version 1.2)

plot.ICBayes: Plot baseline survival function

Description

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

Usage

# S3 method for 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab