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
}

Try the JMbayes package in your browser

Any scripts or data that you put into this service are public.

JMbayes documentation built on Jan. 9, 2020, 9:07 a.m.