func_MCMC_graph {BayesSurvive}R Documentation

Function to learn MRF graph

Description

This an internal function for MCMC sampling

Usage

func_MCMC_graph(sobj, hyperpar, ini, S, method, MRF_2b)

Arguments

sobj

a list containing observed data from n subjects; t, di, X. See details for more information

hyperpar

a list containing prior parameter values

ini

a list containing prior parameters' ini values

S

the number of subgroups

method

a method option from c("Pooled", "CoxBVSSL", "Sub-struct")

MRF_2b

two different b in MRF prior for subgraphs G_ss and G_rs

Value

A list object with components "Sig" the updated covariance matrices, "G.ini" the updated graph, "V.ini" the updated variances for precision matrices in all subgroups, "C.ini" the updated precision matrices omega for each subgroup


[Package BayesSurvive version 0.0.1 Index]