getRuntime {BiDAG}R Documentation

Extracting runtime

Description

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

Usage

getRuntime(x, which = 0)

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)

Value

runtime of a particular step of MCMC scheme or total runtime

Examples

myscore<-scoreparameters("bge",Boston)
## Not run: 
orderfit<-sampleBN(myscore,algorithm="order")
(getRuntime(orderfit,1))
(getRuntime(orderfit,2))

## End(Not run)

[Package BiDAG version 2.1.4 Index]