print.mmp_prior: Print

View source: R/make_prior_object_functions.R

print.mmp_priorR Documentation

Print

Description

Print

Usage

## S3 method for class 'mmp_prior'
print(x, ...)

## S3 method for class 'mmp_inla'
print(x, ...)

## S3 method for class 'mmp_stan'
print(x, ...)

Arguments

x

Object of class mmp_prior, mmp_inla or mmp_stan.

...

For mmp_stan and mmp_inla, see print.data.frame.

Value

Returns input object invisible.

Examples

pri <- makemyprior_example_model()
pri # or print(pri)

if (interactive() && requireNamespace("rstan")){
  res_stan <- inference_stan(ex_prior, iter = 100)
  # Note: For reliable results, increase the number of iterations (e.g., 'iter = 2000')
  res_stan # or print(res_stan)
}

if (interactive() && requireNamespace("INLA")){
  res_inla <- inference_inla(pri)
  res_inla # or print(res_inla)
}


makemyprior documentation built on Sept. 11, 2024, 6:56 p.m.