Learn R Programming

BAREB (version 0.1.2)

updateE: Function to update patient level clustering in the BAREB model

Description

This function takes current parameters and observed data, gives an updated patient level clustering.

Usage

updateE( Beta, Gamma,w,
    X, Y, Z, delta,
    E, R, S, Ds,
    mu, mustar,
    sigma, c,
    n, m, T0, p, q, D)

Value

updateE( Beta, Gamma,w, X, Y, Z, delta,E, R, S, Ds, mu, mustar, sigma, c, n, m, T0, p, q, D) returns a list with following variables:

E

the updated patient level clustering

Ds

new vector recording the numbers of site level clusters

mu

the updated mu computed by updated E

mustar

the updated mustar computed by updated E

Arguments

Beta

current patient level linear coefficients matrix

Gamma

current site level linear coefficients array

w

current patient level clustering prior prob, a vector

X

the patient level covariate matrix

Y

the CAL observation matrix, with missing values

Z

the site level covariate matrix

delta

the missing indicator matrix, with 1 means missing

E

current patient level clustering vector

R

current site level clustering matrix

S

number of patient level clusters

Ds

a vector recording numbers of site level clusters

mu

current estimated mean matrix for CAL

mustar

current matrix of latent value for missingness model

sigma

current estimated noise variance

c

current c for missingness model. It is a vector

n

number of patients

m

number of sites

T0

number of teeth

p

dimension of patient level covariates

q

dimension of site level covariates

D

the D matrix in the paper

Author

Yuliang Li

See Also

update_RJ for a complete example for all functions in this package.