initialiseG | R Documentation |
This function maps the variance estimates onto the full c x q
levels for each random effect. This
ensures that the matrices commute in the NB-GLMM solver. This function is included for reference, and
should not be used directly
initialiseG(cluster_levels, sigmas, Kin = NULL)
cluster_levels |
A |
sigmas |
A |
Kin |
A |
Broadcast the variance component estimates to the full c\*q x c\*q
matrix.
matrix
of the full broadcast variance component estimates.
Mike Morgan & Alice Kluzer
data(sim_nbglmm)
random.levels <- list("RE1"=paste("RE1", levels(as.factor(sim_nbglmm$RE1)), sep="_"),
"RE2"=paste("RE2", levels(as.factor(sim_nbglmm$RE2)), sep="_"))
rand.sigma <- matrix(runif(2), ncol=1)
rownames(rand.sigma) <- names(random.levels)
big.G <- initialiseG(random.levels, rand.sigma)
dim(big.G)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.