R/ranef.JMbayes.R

ranef.JMbayes <-
function (object, postVar = FALSE, ...) {
    if (!inherits(object, "JMbayes"))
        stop("Use only with 'JMbayes' objects.\n")
    postMeans <- object$postMeans$b
    if (postVar) {
        attr(postMeans, "postVar") <- object$postVarsRE
    }
    postMeans
}
drizopoulos/JMbayes documentation built on Feb. 2, 2021, 12:34 a.m.