Learn R Programming

R2GUESS (version 2.0)

Postprocess.R2GUESS: Performs posterior inference from an interrupted R2GUESS run.

Description

The Postprocess.R2GUESS function calculates the MPPI, the MPP and lists the best models visited based on a previous run which has been interrupted due to computing time exceeding the user-defined limit.

Usage

Postprocess.R2GUESS(x)

Arguments

x

an object of class ESS.

Value

An object of class ESS whose fields are detailed in as.ESS.object.

Details

The Postprocess.R2GUESS function calculates the MPPI, the MPP and lists the best models visited based on a previous run which has been interrupted due to computing time exceeding the user-defined limit. This function is used to explore results from a run which has been interrupted and provides intermediate posterior inference for the MPPI, MPP, and list of best visited models.

See Also

Resume.R2GUESS, Extend.R2GUESS, as.ESS.object

Examples

Run this code
# NOT RUN {
## First we are creating a run which has been not finished in 1 hour
path.input <- system.file("Input", package="R2GUESS")
path.output <- tempdir()
path.par <- system.file("extdata", package="R2GUESS")
file.par.Hopx <- "Par_file_example_Hopx.xml"
print(paste(path.par,file.par.Hopx,sep=""))
root.file.output.Hopx <- "Example-GUESS-Y-Hopx"
label.Y <- c("ADR","Fat","Heart","Kidney")
data(data.Y.Hopx)
data(data.X)
data(MAP.file)

modelY_Hopx<-R2GUESS(dataY=data.Y.Hopx,dataX=data.X,,choice.Y=1:4,
label.Y=label.Y,MAP.file=MAP.file,file.par=file.par.Hopx,
file.init=NULL,file.log=NULL,root.file.output=root.file.output.Hopx,
path.input=path.input,path.output=path.output,path.par=path.par,
path.init=NULL,nsweep=510000,burn.in=10000,Egam=5,Sgam=5,top=100,
history=TRUE,time=TRUE,nb.chain=3,conf=0,cuda=FALSE,time.limit=1)

modelY_Hopx_postprocess <- Postprocess.R2GUESS(modelY_Hopx)

# }

Run the code above in your browser using DataLab