code: Get the JAGS or Stan code from a metajags or metastan model.

Description Usage Arguments Details Value Author(s) See Also

Description

Returns a character containing the compiled JAGS or Stan code from a metajags or metastan model.

Usage

1
2
3
4
## S3 method for class 'metamodel'
code(x, ...)
## S3 method for class 'metamodel'
as.character(x, ...)

Arguments

x

A metabayes model (e.g. an object with class "metabayes") such as returned by metajags or metastan.

...

Additional arguments passed to or from other methods.

Details

The code method returns a character string containing the compiled JAGS or Stan code from a metajags or metastan model.

For "metabayes" and derived object, as.character(x) returns the same value as code(x).

Value

A character string.

Author(s)

Matthew Kay

See Also

See also metajags, metastan.


mjskay/metabayes documentation built on May 23, 2019, 1:05 a.m.