updateR | R Documentation |
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)
w |
current site level clustering prior prob, a matrix |
Gamma |
current site level linear coefficients array |
Beta |
current patient level linear coefficients matrix |
Y |
the CAL observation matrix, with missing values |
Z |
the site level covariate matrix |
delta |
the missing indicator matrix, with 1 means missing |
mu |
current estimated mean matrix for CAL |
mu_star |
current matrix of latent value for missingness model |
c |
current c for missingness model |
S |
number of patient level clusters |
sigma_square |
current estimated noise variance |
K |
a vector recording numbers of site level clusters |
E |
current patient level clustering vector |
X |
the patient level covariate matrix |
m |
number of sites |
n |
number of patients |
p |
dimension of patient level covariates |
q |
dimension of site level covariates |
T0 |
number of teeth |
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.
Yuliang Li
update_RJ for a complete example for all functions in this package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.