addPrediction <- function(modelSpecs) {
# Generic function: computes predicted values (BLUP)
UseMethod("addPrediction")
}
addPrediction.default <- function(modelSpecs) {
# Generic function: computes predicted values (BLUP)
modelSpecs$prediction <- modelSpecs$X %*% modelSpecs$beta + modelSpecs$fitre$x
modelSpecs
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.