survregVB.frailty.fit.Calculates parameter \(\sigma^{2*}_i\) of \(q^*(\gamma_i)\) for
\(i=1,...,K\) clusters to optimize the evidence based lower bound
(ELBO) in survregVB.frailty.fit.
sigma_squared_star(
y,
X,
delta,
alpha,
omega,
mu,
tau,
lambda,
eta,
expectation_b,
cluster
)Parameter vector \(\sigma^{2*}_i\) of \(q^*(\gamma_i)\)
for all clusters.
A vector of observed log-transformed survival times.
A design matrix including covariates with first column of ones to represent the intercept.
A binary vector indicating right censoring.
The shape parameter \(\alpha^*\) of \(q^*(b)\).
The scale parameter \(\omega^*\) of \(q^*(b)\).
Parameter \(\mu^*\) of \(q^*(\beta)\), a vector of means.
Parameter \(\tau^*\) of \(q^*(\gamma_i)\), a vector of means.
The shape parameter \(\lambda^*\) of \(q^*(\sigma^2_\gamma)\).
The scale parameter \(\eta^*\) of \(q^*(\sigma^2_\gamma)\).
The expected value of b.
A numeric vector indicating the cluster assignment for each observation.
survregVB.frailty.fit