| svc | R Documentation |
Creates a variance component object as a function of model objects and (optionally) a relationship matrix.
svc(form, R = NULL)
form |
An expression for the covariance model. |
R |
A relationship matrix. Should be a sparse matrix from the |
An object of class svc.
library(svcm)
R <- Matrix::Diagonal(100)
L <- pm(nrow = 6, ncol = 2,
labels = paste0("l", 1:12),
values = c(1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1),
free = c(FALSE, TRUE, TRUE, FALSE, FALSE, FALSE,
FALSE, FALSE, FALSE, FALSE, TRUE, TRUE),
name = "L")
S <- pm(nrow = 2, ncol = 2,
labels = c("s11", "s12", "s12", "s22"),
values = c(2, 1, 1, 2),
free = TRUE,
name = "S")
vc <- svc(form = L %*% S %*% t(L), R = R)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.