Learn R Programming

BiDAG (version 2.1.4)

getRuntime: Extracting runtime

Description

This function extracts runtime of a particular step of order and partition MCMC.

Usage

getRuntime(x, which = 0)

Value

runtime of a particular step of MCMC scheme or total runtime

Arguments

x

object of class 'orderMCMC'or 'partitionMCMC'

which

integer, defines if the runtime is extracted for: computing score tables (which = 1), running MCMC chain (which = 2)

Examples

Run this code
myscore<-scoreparameters("bge",Boston)
if (FALSE) {
orderfit<-sampleBN(myscore,algorithm="order")
(getRuntime(orderfit,1))
(getRuntime(orderfit,2))
}

Run the code above in your browser using DataLab