Package 'smbr'

Title: Facilitates Bayesian Analysis using STAN
Description: Facilitates analyses using STAN.
Authors: Chris Muir [aut], Joe Thorley [aut, cre], Ayla Pearson [ctb]
Maintainer: Joe Thorley <[email protected]>
License: MIT + file LICENSE
Version: 0.0.1.9010
Built: 2024-11-01 16:20:38 UTC
Source: https://github.com/poissonconsulting/smbr

Help Index


Create Data Block from Data List

Description

Automate writing the STAN data block from your data.

Usage

data_block(x)

Arguments

x

A nlist

Value

A string

Examples

mod_data <- nlist::as_nlist(list(
  X = c(1L, 2L, 3L, 4L),
  Y = c(1.2, 7.3, 8.9, 2.6),
  nObs = 4L
))
data_block(mod_data)

Is a STAN Analysis

Description

Tests whether x is an object of class 'smb_analysis'

Usage

is.smb_analysis(x)

Arguments

x

The object to test.

Value

A flag indicating whether the test was positive.


Is STAN Code

Description

Tests whether x is an object of class 'smb_code'

Usage

is.smb_code(x)

Arguments

x

The object to test.

Value

A flag indicating whether the test was positive.


Is a STAN Model

Description

Tests whether x is an object of class 'smb_model'

Usage

is.smb_model(x)

Arguments

x

The object to test.

Value

A flag indicating whether the test was positive.