R/coef.mixmeta.R

Defines functions coef.mixmeta

Documented in coef.mixmeta

###
### R routines for the R package mixmeta (c)
#
coef.mixmeta <-
function(object, format=c("vector","matrix"), ...) {
#
################################################################################
#
  coef <- object$coefficients
  format <- match.arg(format,c("vector","matrix"))
  if(format=="matrix" && object$dim$k>1L) coef <- matrix(coef,ncol=object$dim$k,
    byrow=TRUE,dimnames=list(object$lab$p,object$lab$k))
#
  coef
}

Try the mixmeta package in your browser

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

mixmeta documentation built on Oct. 16, 2021, 5:09 p.m.