This function takes current parameters and observed data, gives an updated patient level clustering.
updateE( Beta, Gamma,w,
X, Y, Z, delta,
E, R, S, Ds,
mu, mustar,
sigma, c,
n, m, T0, p, q, D)
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:
the updated patient level clustering
new vector recording the numbers of site level clusters
the updated mu computed by updated E
the updated mustar computed by updated E
current patient level linear coefficients matrix
current site level linear coefficients array
current patient level clustering prior prob, a vector
the patient level covariate matrix
the CAL observation matrix, with missing values
the site level covariate matrix
the missing indicator matrix, with 1 means missing
current patient level clustering vector
current site level clustering matrix
number of patient level clusters
a vector recording numbers of site level clusters
current estimated mean matrix for CAL
current matrix of latent value for missingness model
current estimated noise variance
current c for missingness model. It is a vector
number of patients
number of sites
number of teeth
dimension of patient level covariates
dimension of site level covariates
the D matrix in the paper
Yuliang Li
update_RJ for a complete example for all functions in this package.