R/coef.R

Defines functions coef.eblupres

Documented in coef.eblupres

#' Extract Model Coefficients.
#'
#' @param object EBLUP model.
#' @param ... further arguments passed to or from other methods.
#'
#' @return model coefficients
#'
#' @examples
#' m1 <- eblupfh_cluster(y ~ x1 + x2 + x3, data = mys, vardir = "var", cluster = "clust")
#' coef(m1)
#'
#' @export
coef.eblupres <- function(object, ...) {
  est_beta <- object$fit$estcoef$beta
  names(est_beta) <- rownames(object$fit$estcoef)
  return(est_beta)
}

Try the saens package in your browser

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

saens documentation built on April 4, 2025, 4:43 a.m.