updateR: Function to update site level clustering in the BAREB model

Description Usage Arguments Value Author(s) See Also

View source: R/RcppExports.R

Description

This function takes current parameters and observed data, gives an updated site level clustering.

Usage

1
2
3
4
5
6
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.


BAREB documentation built on March 26, 2020, 7:36 p.m.

Related to updateR in BAREB...