R/blup_blup.R

Defines functions blup_blup

Documented in blup_blup

#' Compute the unmodified blup of a lmerMod object
#'
#' @description Compute the unmodified blup of a lmerMod object.
#'
#' @param model a lmerMod object.
#' @export
blup_blup <- function(model){
  Uhat.list <- ranef(model)
  Uhat.list <- lapply(Uhat.list,as.matrix.data.frame)
  ehat <- resid(model)
  out = list(Uhat_list = Uhat.list, ehat = ehat)
  return(out)

}
jaromilfrossard/lme4permuco documentation built on May 26, 2019, 4:42 p.m.