estnet_bayes: Determine the posterior distributions of the network...

Description Usage Arguments Value Examples

View source: R/ludwig_functions.R

Description

This function allows for estimating an undirected graphical model using MCMC via JAGS (Just another Gibb's sampler).

Usage

1
2
estnet_bayes(data, n_chains = 2, n_iter = 1000, n_burnin = 1000,
  n_adapt = 1000, n_thin = 4)

Arguments

data

a binary input matrix

n_chains

the number of chains used

n_iter

the number of MCMC iterations

n_burnin

the number of burn-in iterations

n_adapt

the number of adaption iterations

n_thin

the thinning interval

Value

The function returns a list of class estnet_bayes, containing...

Examples

1
2
3
# Simulates two negatively coupled nodes
# using random updating
simnet(2, c(1,1,-2), 1000, 1000)

ghosoya/ludwig documentation built on Sept. 20, 2020, 3:48 p.m.