bn2jagscript: constructs a Jags script from a bn

Description Usage Arguments Details Value Examples

View source: R/f1.rsbn.code.r

Description

(bn) / not available for the moment / exploring all nodes of a bn, produces a set of lines which can serve as starting script for jags. No data is considered; selected nodes are monitored; iteration numbers are indicated

Usage

1
bn2jagscript(bn, modna, codna, quoi=bn@nom, iter=c(1000, 10000, 10))

Arguments

bn

bn to translate

modna

model name: i.e. the file containing the model definition.

codna

coda root name: i.e. the stem for the file where Jags will store the simulation results.

quoi

set of nodes to monitor.

iter

respectively the number of iterations for the burnin, the number of iterations for the monitoring and their thinning value.

Details

Completely specific to Jags dialect

Value

A character vector, a component a line.

Examples

1
2
 rebastaba3k("RESET"); # (only for R checking)
 cat("To be added\n");

rebastaba documentation built on May 31, 2017, 3:26 a.m.

Search within the rebastaba package
Search all R packages, documentation and source code