RJi_empty: Function to update the number of site level clusters for one...

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

This function updates the number of site level clusters for one patient level cluster via RJMCMC, when there is no patient in this cluster. Only used for updateRJ function.

Usage

1
RJi_empty(w, K, Gamma,  R,  C,theta, tau, m,  q, hyper_delta)

Arguments

w

The weights for site level clusters. Should be a vector.

K

The number of site level cluster for the patient level cluster.

Gamma

The linear coefficients for site level covariates. Should be a matrix.

R

The current site level clustering membership

C

The DPP related kernel matrices. Should be an array of 3 dimensions

theta

The DPP hyper-parameter for site level

tau

A fixed DPP hyper-parameter, which we suggest high value, say 10^5

m

The number of sites

q

The number of site level covariates

hyper_delta

The hyper-parameter with default value being 1

Value

RJi_empty(w, K, Gamma, R, C,theta, tau, m, q, hyper_delta) returns a list with following variables:

K

The numbers of site level clusters

w

The weights for site level clusters

Gamma

Linear coefficients for site level covariates

R

The site level clusteirng membership

C

The DPP related kernel matrice

Author(s)

Yuliang Li


BAREB documentation built on March 26, 2020, 7:36 p.m.

Related to RJi_empty in BAREB...