UpdateGamma {BayesSurvive}R Documentation

Subfunctions to update parameters

Description

This contains subfunctions to update parameters gammas, betas, baseline hazard and graph learning parameters

Usage

UpdateGamma(sobj, hyperpar, ini, S, method, MRF_G, MRF_2b)

Arguments

sobj

a list containing observed data

hyperpar

a list containing prior parameter values

ini

a list containing prior parameters' initial values

S

the number of subgroups

method

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

MRF_G

logical value. MRF_G = TRUE is to fix the MRF graph which is provided in the argument hyperpar, and MRF_G = FALSE is to use graphical model for leanring the MRF graph

MRF_2b

two different b in MRF prior for subgraphs G_ss and G_rs

Value

A list object with two components for the latent variable selection indicators gamma with either independent Bernoulli prior


[Package BayesSurvive version 0.0.1 Index]