R/summary_metagam.R

Defines functions summary.metagam

Documented in summary.metagam

#' Summary method for metagam objects
#'
#' @param object A metagam object as returned by \code{\link{metagam}}.
#' @param ... other arguments (not used).
#'
#' @return A list of class \code{summary.metagam} containing the following information:
#' \itemize{
#' \item \code{meta_pvals}: dataframe with p-values from each individual fit. These can be meta-analytically
#'   combined using the \code{metap} package.
#' \item \code{terms}: smooth terms that have been meta-analyzed.
#' \item \code{method}: method used for meta-analysis. See the \code{metafor} package for detailed description.
#' \item \code{intercept}: logical specifying whether or not the intercept has been included in the meta-analysis.
#' \item \code{cohorts}: Number of datasets ("cohorts") used in the meta-analysis.
#' }
#' @export
#'
summary.metagam <- function(object, ...){

  ret <- object

  class(ret) <- "summary.metagam"

  ret

}

Try the metagam package in your browser

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

metagam documentation built on May 31, 2023, 6:43 p.m.