UpdateGamma: Subfunctions to update parameters

View source: R/updatePara.R

UpdateGammaR 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, cpp = FALSE)

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 learning the MRF graph

MRF_2b

two different b in MRF prior for subgraphs G_ss and G_rs

cpp

logical, whether to use C++ code for faster computation

Value

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


BayesSurvive documentation built on April 3, 2025, 5:58 p.m.