R/coef.mvmeta.R

Defines functions coef.mvmeta

Documented in coef.mvmeta

###
### R routines for the R package mvmeta (c)
#
coef.mvmeta <- 
function(object, format=c("vector","matrix"), ...) {
#
################################################################################
#
  coef <- object$coefficients
  format <- match.arg(format,c("vector","matrix"))
  if(format=="matrix" || is.vector(coef)) return(coef)
  names <- paste(rep(colnames(coef),each=nrow(coef)),
    rep(rownames(coef),ncol(coef)),sep=".")
  coef <- as.numeric(coef)
  names(coef) <- names
#
  coef
}

Try the mvmeta package in your browser

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

mvmeta documentation built on Dec. 10, 2019, 5:07 p.m.