R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 (2005-06-20), ISBN 3-900051-07-0 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 a HTML browser interface to help. Type 'q()' to quit R. > ### *
> ### > attach(NULL, name = "CheckExEnv") > assign(".CheckExEnv", as.environment(2), pos = length(search())) # base > ## add some hooks to label plot pages for base and grid graphics > setHook("plot.new", ".newplot.hook") > setHook("persp", ".newplot.hook") > setHook("grid.newpage", ".gridplot.hook") > > assign("cleanEx", + function(env = .GlobalEnv) { + rm(list = ls(envir = env, all.names = TRUE), envir = env) + RNGkind("default", "default") + set.seed(1) + options(warn = 1) + delayedAssign("T", stop("T used instead of TRUE"), + assign.env = .CheckExEnv) + delayedAssign("F", stop("F used instead of FALSE"), + assign.env = .CheckExEnv) + sch <- search() + newitems <- sch[! sch %in% .oldSearch] + for(item in rev(newitems)) + eval(substitute(detach(item), list(item=item))) + missitems <- .oldSearch[! .oldSearch %in% sch] + if(length(missitems)) + warning("items ", paste(missitems, collapse=", "), + " have been removed from the search path") + }, + env = .CheckExEnv) > assign("..nameEx", "__{must remake R-ex/*.R}__", env = .CheckExEnv) # for now > assign("ptime", proc.time(), env = .CheckExEnv) > grDevices::postscript("survBayes-Examples.ps") > assign("par.postscript", graphics::par(no.readonly = TRUE), env = .CheckExEnv) > options(contrasts = c(unordered = "contr.treatment", ordered = "contr.poly")) > options(warn = 1) > library('survBayes') Loading required package: survival Loading required package: splines Loading required package: coda > > assign(".oldSearch", search(), env = .CheckExEnv) > assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) > cleanEx(); ..nameEx <- "AA.data" > > ### * AA.data > > flush(stderr()); flush(stdout()) > > ### Name: AA.data > ### Title: Shrinkage of aneurisms > ### Aliases: AA.data > ### Keywords: datasets > > ### ** Examples > > data(AA.data) > > > > cleanEx(); ..nameEx <- "survBayes" > > ### * survBayes > > flush(stderr()); flush(stdout()) > > ### Name: survBayes > ### Title: Fits a proportional hazards model to time to event data by a > ### Bayesian approach > ### Aliases: survBayes survBayes.b.fctn.Lambda survBayes.base > ### survBayes.chol survBayes.draw.cond.pw.lin.exp survBayes.KM.int > ### survBayes.Lambda0 survBayes.numb.events.int survBayes.poisson.update > ### survBayes.taylor > ### Keywords: survival > > ### ** Examples > > data(AA.data) > AA.res<-survBayes(Surv(t.left,t.right,z*3,type="interval")~mo+lok+frailty(gr,dist="gauss"),data=AA.data,burn.in=10,number.sample=10) > > > > cleanEx(); ..nameEx <- "survBayes.control" > > ### * survBayes.control > > flush(stderr()); flush(stdout()) > > ### Name: survBayes.control > ### Title: Package options for survBayes > ### Aliases: survBayes.control > ### Keywords: survival > > ### ** Examples > > > > > > cleanEx(); ..nameEx <- "survBayes.control.gamma.frailty" > > ### * survBayes.control.gamma.frailty > > flush(stderr()); flush(stdout()) > > ### Name: survBayes.control.gamma.frailty > ### Title: Package options for gamma frailty in survBayes > ### Aliases: survBayes.control.gamma.frailty > ### Keywords: survival > > ### ** Examples > > > > > > cleanEx(); ..nameEx <- "survBayes.control.lognormal.frailty" > > ### * survBayes.control.lognormal.frailty > > flush(stderr()); flush(stdout()) > > ### Name: survBayes.control.lognormal.frailty > ### Title: Package options for lognormal frailty in survBayes > ### Aliases: survBayes.control.lognormal.frailty > ### Keywords: survival > > ### ** Examples > > > > > > ### *