This function takes current parameters and observed data, gives an updated site level clustering.
updateR( w ,Gamma,Beta,
Y, Z, delta,
mu, mu_star,
c, S, sigma_square,
K, E, X,
m,n, q, p, T0)
updateR( w ,Gamma,Beta, Y, Z, delta, mu, mu_star, c, S, sigma_square, K, E, X, m,n, p, q, T0)
returns the updated site level clustering.
current site level clustering prior prob, a matrix
current site level linear coefficients array
current patient level linear coefficients matrix
the CAL observation matrix, with missing values
the site level covariate matrix
the missing indicator matrix, with 1 means missing
current estimated mean matrix for CAL
current matrix of latent value for missingness model
current c for missingness model
number of patient level clusters
current estimated noise variance
a vector recording numbers of site level clusters
current patient level clustering vector
the patient level covariate matrix
number of sites
number of patients
dimension of patient level covariates
dimension of site level covariates
number of teeth
Yuliang Li
update_RJ for a complete example for all functions in this package.