This function takes current parameters, gives an estimated mean CAL values.
updatemu(R, Z, X, Gamma, K, Beta, E, m,n,p, q)
updatemu(R, Z, X, Gamma, K, Beta, E, m,n,p, q)
returns the updated estimated mean CAL matrix.
current site level clustering matrix
the site level covariate matrix
the patient level covariate matrix
current site level linear coefficients array
a vector recording numbers of site level clusters
current patient level linear coefficients matrix
current patient level clustering vector
number of sites
number of patients
dimension of patient level covariates
dimension of site level covariates
Yuliang Li
update_RJ for a complete example for all functions in this package.