fit_mcmc: Set up MCMC Chain

View source: R/mcmc_out.R

fit_mcmcR Documentation

Set up MCMC Chain

Description

Set up MCMC Chain

Usage

fit_mcmc(data, scoretype = "bge", iterations, ...)

Arguments

data

dataset to fit

scoretype

type of score: "bge" or "bde"

iterations

number of iterations

...

other arguments to pass to partitionMCMC

Details

This is basically a wrapper for BiDAG's scoreparameters() and partitionMCMC(), but which augments the chain with an array of sampled adjacencies, the number of samples and variables, and the average adjacency. Variable names are also extracted from the original data set.

Value

An object of class summary_MCMCchain.


rje42/DAGtools documentation built on June 6, 2024, 3:13 a.m.