updateR {BAREB} | R Documentation |
Function to update site level clustering in the BAREB model
Description
This function takes current parameters and observed data, gives an updated site level clustering.
Usage
updateR( w ,Gamma,Beta,
Y, Z, delta,
mu, mu_star,
c, S, sigma_square,
K, E, X,
m,n, q, p, T0)
Arguments
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 |
Value
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.
Author(s)
Yuliang Li
See Also
update_RJ for a complete example for all functions in this package.