Learn R Programming

mcmcr (version 0.0.2)

coef: Term Coefficients

Description

Gets coefficients for all the terms in an MCMC object.

Usage

# S3 method for mcarray
coef(object, conf_level = 0.95,
  estimate = stats::median, ...)

# S3 method for mcmc coef(object, conf_level = 0.95, estimate = stats::median, ...)

# S3 method for mcmc.list coef(object, conf_level = 0.95, estimate = stats::median, ...)

# S3 method for mcmcarray coef(object, conf_level = 0.95, estimate = stats::median, ...)

# S3 method for mcmcr coef(object, conf_level = 0.95, estimate = stats::median, ...)

Arguments

object

The MCMC object to get the coefficients for

conf_level

A number specifying the confidence level. By default 0.95.

estimate

The function to use to calculate the estimate.

...

Unused

Value

An tibble of the coefficients with the columns indicating the term, estimate, standard deviation (sd), zscore, lower and upper credible intervals and pvalue.

Methods (by class)

  • mcarray: Get coefficients for terms in mcarray object

  • mcmc: Get coefficients for terms in mcmc object

  • mcmc.list: Get coefficients for terms in mcmc.list object

  • mcmcarray: Get coefficients for terms in mcmcarray object

  • mcmcr: Get coefficients for terms in mcmcr object

See Also

stats::coef

Examples

Run this code
# NOT RUN {
coef(mcmcr_example)
# }

Run the code above in your browser using DataLab