Learn R Programming

qbrms (version 1.0.1)

prior_code: Format priors as qbrms prior() code

Description

Format priors as qbrms prior() code

Usage

prior_code(build, object_name = "priors", digits = 3, include_comments = TRUE)

Value

A single character string containing formatted R code

Arguments

build

A 'qbrms_prior_build' returned by prior_build_from_beliefs()

object_name

Name of the object on the left-hand side (default "priors")

digits

Number of decimal places to print

include_comments

Logical; if TRUE, prepend a short comment header