Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nma_summary-methods

Methods for nma_summary objects


Description

The as.data.frame(), as_tibble(), and as.tibble() methods return the posterior summary statistics in a data frame or tibble. The as.matrix() method returns a matrix of posterior draws. The as.array() method returns a 3D array [Iteration, Chain, Parameter] of posterior draws (as class mcmc_array).

Usage

## S3 method for class 'nma_summary'
print(x, ..., digits = 2, pars, include = TRUE)

## S3 method for class 'nma_summary'
as.data.frame(x, ...)

## S3 method for class 'nma_summary'
as.tibble(x, ...)

## S3 method for class 'nma_summary'
as_tibble(x, ...)

## S3 method for class 'nma_summary'
as.array(x, ...)

## S3 method for class 'nma_summary'
as.matrix(x, ...)

## S3 method for class 'nma_rank_probs'
as.array(x, ...)

## S3 method for class 'nma_rank_probs'
as.matrix(x, ...)

Arguments

x

A nma_summary object

...

Additional arguments passed on to other methods

digits

Integer number of digits to display

pars

Character vector of parameters to display in the printed summary

include

Logical, are parameters named in pars included (TRUE) or excluded (FALSE)

Value

A data.frame for as.data.frame(), a tbl_df for as.tibble() and as_tibble(), a matrix for as.matrix(), and an mcmc_array for as.array().

The print() method returns x invisibly.

See Also


multinma

Bayesian Network Meta-Analysis of Individual and Aggregate Data

v0.3.0
GPL-3
Authors
David M. Phillippo [aut, cre] (<https://orcid.org/0000-0003-2672-7841>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.