coef.jags_analysis: Calculate parameter estimates

Description Usage Arguments Value See Also

Description

Calculates parameter estimates for a JAGS analysis

Usage

1
2
3
## S3 method for class 'jags_analysis'
coef(object, parm = "fixed", level = "current",
  estimate = "current", as_list = FALSE, latex = FALSE, ...)

Arguments

object

a jags_analysis object

parm

a character vector of the parameters to calculate the estimates

level

a numeric scalar specifying the significance level or a character scalar specifying which mode the level should be taken from. By default the level is as currently specified by opts_jagr in the global options. If level = "no" then returns a jags_sample object.

estimate

a character scalar specifying whether the point estimate should be the "mean" or the "median" or a character scalar which mode the level should be taken from. By default the estimate is as currently specified by opts_jagr in the global options.

as_list

a logical scalar indicating whether the coefs should be in the form of a list (as_list = TRUE) or the default (as_list = FALSE) a data.frame.

latex

A flag indicating whether to replace parameter names with latex math comments.

...

further arguments passed to or from other methods.

Value

a data.frame of the parameter estimates with the point estimate and lower and upper credible limits as well as the standard deviation, percent relative error and significance

See Also

jags_analysis, opts_jagr and jaggernaut


poissonconsulting/jaggernaut documentation built on Feb. 18, 2021, 11:10 p.m.