llsmRW: Function to run MCMC sampler for the LLSM-RW model

Description Usage Arguments Details

Description

llsmRW runs MCMC sampler for the LLSM-RW model.

Usage

1
2
llsmRW(Y, initialVals = NULL, priors = NULL, tune = NULL, tuneIn = TRUE,
  dd, niter)

Arguments

Y

A list of sociomatrix for observed networks

initialVals

A list of values for initializing the chain for intercept and ZZ. Default is set to NULL, when random initialization is used.

priors

A list of parameters for prior distribution specified as MuBeta, VarBeta, VarZ, A and B If set to NULL, default priors is used

tune

A list of tuning parameters. If set to NULL, default values are used.

tuneIn

Logical option to specify whether to auto tune the chain or not. Default is TRUE

dd

Dimension of the latent space

niter

Number of MCMC iterations to run

Details

llsmRW runs MCMC sampler for the LLSM-RW model and returns samples from the posteriors chains of the parameters, the posterior likelihood at the accpeted parameters, a list of acceptance rates from the metropolis hastings sampling, and a list of the tuning values if tuneIn is set to TRUE


SAcmu/LLSM documentation built on May 9, 2019, 11:06 a.m.