R/ranef.randomLCA.R

Defines functions `ranef.randomLCA`

`ranef.randomLCA` <-
function(object,...) {
    if (!inherits(object, "randomLCA"))
        stop("Use only with 'randomLCA' objects.\n")
    if (!object$random)
         stop("Object must be fitted with random=TRUE.\n")
    return(object$ranef)
 }

ranef <-
  ## Short form for generic function for extracting the random effects
  function(object, ...) UseMethod("ranef")

Try the randomLCA package in your browser

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

randomLCA documentation built on July 9, 2023, 6:09 p.m.