multinma (version 0.1.3)

print.nma_summary: 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 nma_summary
print(x, ..., digits = 2, pars, include = TRUE)

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

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

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

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

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

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

# S3 method for 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

plot.nma_summary()