summary.crosnma: Generic summary function for crosnma.run object

Usage Arguments

View source: R/crosnma.summary.R

Usage

1
2
## S3 method for class 'crosnma'
summary(x, digits = 3, quantiles = c(0.025, 0.5, 0.975), expo = TRUE, ...)

Arguments

x

A crosrun object generated by the crosnma.run function.

digits

The number of significant digits printed. The default value is 3.

quantiles

A numeric vector of probabilities to present posterior summaries. The default value is c(0.025, 0.5, 0.975) for the 95

\item

expoA logical value indicating whether to exponentiate the parameters of relative treatment effect and covariate effect. Default is TRUE.

summary.crosnma returns a matrix containing the following summary statistics (in columns) for each estimated parameter:

Mean the mean of the posterior distribution

SD the standard deviation of the posterior distribution

2.5% the 2.5% quantile of the posterior distribution (the lower bound of the 95

50% the median of the posterior distribution

97.5% the 97.5% quantile of theposterior distribution (the upper bound of the 95

Rhat Gelman-Rubin statistic. The further the value of Rhat from 1, the worse the mixing of chains and so the convergence.

n.eff an estimate of the effective sample size. The smaller the value of n.eff the greater the uncertanity associated with the corresponding parameter. Generic summary function for crosnma.run object


TasnimHamza/crosnma documentation built on Dec. 18, 2021, 4:05 p.m.